Loading app/src/main/java/net/sourceforge/opencamera/MainActivity.java +5 −0 Original line number Diff line number Diff line Loading @@ -494,6 +494,7 @@ public class MainActivity extends Activity { 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); } Loading Loading @@ -843,12 +844,14 @@ public class MainActivity extends Activity { static String getOnlineHelpUrl(String append) { if( MyDebug.LOG ) Log.d(TAG, "getOnlineHelpUrl: " + append); // if we change this, remember that any page linked to must abide by Google Play developer policies! return "https://opencamera.sourceforge.io/"+ append; } void launchOnlineHelp() { if( MyDebug.LOG ) Log.d(TAG, "launchOnlineHelp"); // 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(getOnlineHelpUrl(""))); startActivity(browserIntent); } Loading @@ -856,6 +859,7 @@ public class MainActivity extends Activity { void launchOnlinePrivacyPolicy() { if( MyDebug.LOG ) Log.d(TAG, "launchOnlinePrivacyPolicy"); // 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("https://opencamera.sourceforge.io/index.html#privacy")); startActivity(browserIntent); } Loading Loading @@ -3834,6 +3838,7 @@ public class MainActivity extends Activity { 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 static String getDonateMarketLink() { Loading app/src/main/java/net/sourceforge/opencamera/MyPreferenceFragment.java +2 −0 Original line number Diff line number Diff line Loading @@ -1253,7 +1253,9 @@ public class MyPreferenceFragment extends PreferenceFragment implements OnShared SpannableString span = new SpannableString(about_string); // Google Play prelaunch accessibility warnings suggest using URLSpan instead of ClickableSpan // if we change this, remember that any page linked to must abide by Google Play developer policies! span.setSpan(new URLSpan("http://www.gnu.org/copyleft/gpl.html"), about_string.indexOf(gpl_link), about_string.indexOf(gpl_link) + gpl_link.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); // if we change this, remember that any page linked to must abide by Google Play developer policies! span.setSpan(new URLSpan(MainActivity.getOnlineHelpUrl("#licence")), about_string.indexOf(online_help_link), about_string.indexOf(online_help_link) + online_help_link.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); // clickable text is only supported if we call setMovementMethod on the TextView - which means we need to create Loading Loading
app/src/main/java/net/sourceforge/opencamera/MainActivity.java +5 −0 Original line number Diff line number Diff line Loading @@ -494,6 +494,7 @@ public class MainActivity extends Activity { 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); } Loading Loading @@ -843,12 +844,14 @@ public class MainActivity extends Activity { static String getOnlineHelpUrl(String append) { if( MyDebug.LOG ) Log.d(TAG, "getOnlineHelpUrl: " + append); // if we change this, remember that any page linked to must abide by Google Play developer policies! return "https://opencamera.sourceforge.io/"+ append; } void launchOnlineHelp() { if( MyDebug.LOG ) Log.d(TAG, "launchOnlineHelp"); // 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(getOnlineHelpUrl(""))); startActivity(browserIntent); } Loading @@ -856,6 +859,7 @@ public class MainActivity extends Activity { void launchOnlinePrivacyPolicy() { if( MyDebug.LOG ) Log.d(TAG, "launchOnlinePrivacyPolicy"); // 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("https://opencamera.sourceforge.io/index.html#privacy")); startActivity(browserIntent); } Loading Loading @@ -3834,6 +3838,7 @@ public class MainActivity extends Activity { 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 static String getDonateMarketLink() { Loading
app/src/main/java/net/sourceforge/opencamera/MyPreferenceFragment.java +2 −0 Original line number Diff line number Diff line Loading @@ -1253,7 +1253,9 @@ public class MyPreferenceFragment extends PreferenceFragment implements OnShared SpannableString span = new SpannableString(about_string); // Google Play prelaunch accessibility warnings suggest using URLSpan instead of ClickableSpan // if we change this, remember that any page linked to must abide by Google Play developer policies! span.setSpan(new URLSpan("http://www.gnu.org/copyleft/gpl.html"), about_string.indexOf(gpl_link), about_string.indexOf(gpl_link) + gpl_link.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); // if we change this, remember that any page linked to must abide by Google Play developer policies! span.setSpan(new URLSpan(MainActivity.getOnlineHelpUrl("#licence")), about_string.indexOf(online_help_link), about_string.indexOf(online_help_link) + online_help_link.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); // clickable text is only supported if we call setMovementMethod on the TextView - which means we need to create Loading