From 5361ca8046e332ebcfb6d00254aa6ee7362e9086 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Fri, 22 Apr 2022 11:25:21 +0600 Subject: [PATCH] 224-Remove_welcome_alert issue: https://gitlab.e.foundation/e/os/backlog/-/issues/224 Welcome popup has a layout popup not fully rotating issue. & The popup actually don't add any extra business value. --- .../sourceforge/opencamera/MainActivity.java | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/app/src/main/java/net/sourceforge/opencamera/MainActivity.java b/app/src/main/java/net/sourceforge/opencamera/MainActivity.java index a92a7d897..7d1a2f517 100644 --- a/app/src/main/java/net/sourceforge/opencamera/MainActivity.java +++ b/app/src/main/java/net/sourceforge/opencamera/MainActivity.java @@ -516,29 +516,8 @@ public class MainActivity extends Activity { boolean has_done_first_time = sharedPreferences.contains(PreferenceKeys.FirstTimePreferenceKey); if( MyDebug.LOG ) Log.d(TAG, "has_done_first_time: " + has_done_first_time); - if( !has_done_first_time ) { + if (!has_done_first_time) { setDeviceDefaults(); - } - if( !has_done_first_time ) { - if( !is_test ) { - AlertDialog.Builder alertDialog = new AlertDialog.Builder(this); - alertDialog.setTitle(R.string.app_name); - alertDialog.setMessage(R.string.intro_text); - alertDialog.setPositiveButton(android.R.string.ok, null); - alertDialog.setNegativeButton(R.string.preference_online_help, new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - if( MyDebug.LOG ) - Log.d(TAG, "online help"); - launchOnlineHelp(); - } - }); - /* On application start 20 millisecond delay is not enough for all screen rotating animation to be complete - (if user use the camera in portrait mode, then it moves from portrait to landscape & then again landscape to portrait). - 500 milliseconds delay would do the trick. */ - showAlertDialog(alertDialog, "first time load dialog dismissed", 500L); - } - setFirstTimeFlag(); } -- GitLab