am dc493591: am 4a9423d6: Add method to determine if first run activity has been shown (issue 13680732)
* commit 'dc493591f8917822f8f991e849e8e9eba5e65356': Add method to determine if first run activity has been shown (issue 13680732)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user