ads
This commit is contained in:
parent
22f46ea921
commit
d26a084e50
@ -165,9 +165,9 @@
|
|||||||
|
|
||||||
<string name="c_warning">Внимание</string>
|
<string name="c_warning">Внимание</string>
|
||||||
<string name="c_error">Ошибка</string>
|
<string name="c_error">Ошибка</string>
|
||||||
<string name="c_billing_error">Биллинг не поддерживается!</string>
|
<string name="c_billing_error">Биллинг не поддерживается: вы должны иметь Google Checkout аккаунт привязанный в вашему Google аккаунту и должны быть подключены к интернету.</string>
|
||||||
|
|
||||||
<string name="c_calc_ad_free_title">Избавиться от рекламы и поддержать проект</string>
|
<string name="c_calc_ad_free_title">Избавиться от рекламы!</string>
|
||||||
<string name="c_calc_ad_free_summary">Скидка 50% для первых 100 покупателей</string>
|
<string name="c_calc_ad_free_summary">Скидка 50% для первых 100 покупателей</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
@ -165,9 +165,9 @@
|
|||||||
|
|
||||||
<string name="c_warning">Warning</string>
|
<string name="c_warning">Warning</string>
|
||||||
<string name="c_error">Error</string>
|
<string name="c_error">Error</string>
|
||||||
<string name="c_billing_error">Billing is not supported!</string>
|
<string name="c_billing_error">Billing is not supported: you must have Google Checkout account linked to your Google account and must be connected to the internet.</string>
|
||||||
|
|
||||||
<string name="c_calc_ad_free_title">Get rid of ads and support the project</string>
|
<string name="c_calc_ad_free_title">Get rid of ads!</string>
|
||||||
<string name="c_calc_ad_free_summary">50% offer for first 100 customers</string>
|
<string name="c_calc_ad_free_summary">50% offer for first 100 customers</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
@ -29,6 +29,7 @@ public class CalculatorPreferencesActivity extends PreferenceActivity implements
|
|||||||
|
|
||||||
final Preference addFreePreference = findPreference(CalculatorApplication.AD_FREE_P_KEY);
|
final Preference addFreePreference = findPreference(CalculatorApplication.AD_FREE_P_KEY);
|
||||||
|
|
||||||
|
if (!CalculatorApplication.isAdFree(this)) {
|
||||||
addFreePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
|
addFreePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
|
||||||
public boolean onPreferenceClick(Preference preference) {
|
public boolean onPreferenceClick(Preference preference) {
|
||||||
|
|
||||||
@ -46,6 +47,9 @@ public class CalculatorPreferencesActivity extends PreferenceActivity implements
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
addFreePreference.setEnabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
final SharedPreferences preferences = getPreferenceManager().getSharedPreferences();
|
final SharedPreferences preferences = getPreferenceManager().getSharedPreferences();
|
||||||
preferences.registerOnSharedPreferenceChangeListener(this);
|
preferences.registerOnSharedPreferenceChangeListener(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user