diff --git a/app/src/main/java/net/sourceforge/opencamera/MainActivity.java b/app/src/main/java/net/sourceforge/opencamera/MainActivity.java index d96073feb9803d83c224a0f02ce2d38cac2d14dc..8c66d6398f8a550f05c8255c4201925302f0ce5b 100644 --- a/app/src/main/java/net/sourceforge/opencamera/MainActivity.java +++ b/app/src/main/java/net/sourceforge/opencamera/MainActivity.java @@ -666,16 +666,6 @@ public class MainActivity extends AppCompatActivity { alertDialog.setTitle(R.string.whats_new); alertDialog.setMessage(R.string.whats_new_text); alertDialog.setPositiveButton(android.R.string.ok, null); - alertDialog.setNegativeButton(R.string.donate, new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - if (MyDebug.LOG) - Log.d(TAG, "donate"); - // if we change this, remember that any page linked to must abide by Google Play developer policies! - Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(MainActivity.DonateLink)); - startActivity(browserIntent); - } - }); showAlertDialog(alertDialog, "whats new dialog dismissed"); } } @@ -5518,9 +5508,6 @@ public class MainActivity extends AppCompatActivity { this.supports_force_video_4k = false; } - // if we change this, remember that any page linked to must abide by Google Play developer policies! - public static final String DonateLink = "https://play.google.com/store/apps/details?id=harman.mark.donation"; - public Preview getPreview() { return this.preview; } diff --git a/app/src/main/java/net/sourceforge/opencamera/MyPreferenceFragment.java b/app/src/main/java/net/sourceforge/opencamera/MyPreferenceFragment.java index 116646c3b2f4b7ba67e604ff90bf2d2a41c3b19c..b43d8249bd49a9974c664c86e2c6eecd02dc9f6e 100644 --- a/app/src/main/java/net/sourceforge/opencamera/MyPreferenceFragment.java +++ b/app/src/main/java/net/sourceforge/opencamera/MyPreferenceFragment.java @@ -1000,34 +1000,6 @@ public class MyPreferenceFragment extends PreferenceFragment implements OnShared }); } - { - final Preference pref = findPreference("preference_donate"); - pref.setOnPreferenceClickListener(new OnPreferenceClickListener() { - @Override - public boolean onPreferenceClick(Preference arg0) { - if( pref.getKey().equals("preference_donate") ) { - if( MyDebug.LOG ) - Log.d(TAG, "user clicked to donate"); - /*Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(MainActivity.getDonateMarketLink())); - try { - startActivity(browserIntent); - } - catch(ActivityNotFoundException e) { - // needed in case market:// not supported - if( MyDebug.LOG ) - Log.d(TAG, "can't launch market:// intent"); - browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(MainActivity.getDonateLink())); - startActivity(browserIntent); - }*/ - Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(MainActivity.DonateLink)); - startActivity(browserIntent); - return false; - } - return false; - } - }); - } - { final Preference pref = findPreference("preference_debug_info"); pref.setOnPreferenceClickListener(new OnPreferenceClickListener() { diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 54e183574d39de3de26ac0877bd1829cf7c42218..6019e4588450a19b3220d4c2ab60c682306ae7c0 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -1271,12 +1271,6 @@ android:icon="@drawable/ic_preference_help" /> - -