Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5361ca80 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

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.
parent 49e02d0c
Loading
Loading
Loading
Loading
Loading
+1 −22
Original line number Diff line number Diff line
@@ -518,27 +518,6 @@ public class MainActivity extends Activity {
            Log.d(TAG, "has_done_first_time: " + 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();
        }