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

Commit 4a9423d6 authored by Adam Cohen's avatar Adam Cohen
Browse files

Add method to determine if first run activity has been shown (issue 13680732)

Change-Id: Ia0da4148fd0365c6ae9c3a5a4cff7118959f6382
parent 31442560
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4454,6 +4454,10 @@ public class Launcher extends Activity
                !mSharedPrefs.getBoolean(FIRST_RUN_ACTIVITY_DISPLAYED, false);
    }

    protected boolean hasRunFirstRunActivity() {
        return mSharedPrefs.getBoolean(FIRST_RUN_ACTIVITY_DISPLAYED, false);
    }

    public boolean showFirstRunActivity() {
        if (shouldRunFirstRunActivity() &&
                hasFirstRunActivity()) {
@@ -4542,7 +4546,6 @@ public class Launcher extends Activity
        if (mSearchDropTargetBar != null) mSearchDropTargetBar.hideSearchBar(false);
    }


    public ItemInfo createAppDragInfo(Intent appLaunchIntent) {
        ResolveInfo ri = getPackageManager().resolveActivity(appLaunchIntent, 0);
        if (ri == null) {