Loading src/com/android/settings/applications/InstalledAppDetails.java +16 −7 Original line number Diff line number Diff line Loading @@ -380,8 +380,6 @@ public class InstalledAppDetails extends Fragment public void onCreate(Bundle icicle) { super.onCreate(icicle); setHasOptionsMenu(true); mState = ApplicationsState.getInstance(getActivity().getApplication()); mSession = mState.newSession(this); mPm = getActivity().getPackageManager(); Loading @@ -393,6 +391,10 @@ public class InstalledAppDetails extends Fragment mSmsManager = ISms.Stub.asInterface(ServiceManager.getService("isms")); mCanBeOnSdCardChecker = new CanBeOnSdCardChecker(); retrieveAppEntry(); setHasOptionsMenu(true); } @Override Loading Loading @@ -452,6 +454,8 @@ public class InstalledAppDetails extends Fragment boolean showIt = true; if (mUpdatedSysApp) { showIt = false; } else if (mAppEntry == null) { showIt = false; } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { showIt = false; } else if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { Loading Loading @@ -549,10 +553,7 @@ public class InstalledAppDetails extends Fragment public void onRunningStateChanged(boolean running) { } private boolean refreshUi() { if (mMoveInProgress) { return true; } private String retrieveAppEntry() { final Bundle args = getArguments(); String packageName = (args != null) ? args.getString(ARG_PACKAGE_NAME) : null; if (packageName == null) { Loading @@ -563,6 +564,14 @@ public class InstalledAppDetails extends Fragment } } mAppEntry = mState.getEntry(packageName); return packageName; } private boolean refreshUi() { if (mMoveInProgress) { return true; } final String packageName = retrieveAppEntry(); if (mAppEntry == null) { return false; // onCreate must have failed, make sure to exit Loading Loading
src/com/android/settings/applications/InstalledAppDetails.java +16 −7 Original line number Diff line number Diff line Loading @@ -380,8 +380,6 @@ public class InstalledAppDetails extends Fragment public void onCreate(Bundle icicle) { super.onCreate(icicle); setHasOptionsMenu(true); mState = ApplicationsState.getInstance(getActivity().getApplication()); mSession = mState.newSession(this); mPm = getActivity().getPackageManager(); Loading @@ -393,6 +391,10 @@ public class InstalledAppDetails extends Fragment mSmsManager = ISms.Stub.asInterface(ServiceManager.getService("isms")); mCanBeOnSdCardChecker = new CanBeOnSdCardChecker(); retrieveAppEntry(); setHasOptionsMenu(true); } @Override Loading Loading @@ -452,6 +454,8 @@ public class InstalledAppDetails extends Fragment boolean showIt = true; if (mUpdatedSysApp) { showIt = false; } else if (mAppEntry == null) { showIt = false; } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { showIt = false; } else if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { Loading Loading @@ -549,10 +553,7 @@ public class InstalledAppDetails extends Fragment public void onRunningStateChanged(boolean running) { } private boolean refreshUi() { if (mMoveInProgress) { return true; } private String retrieveAppEntry() { final Bundle args = getArguments(); String packageName = (args != null) ? args.getString(ARG_PACKAGE_NAME) : null; if (packageName == null) { Loading @@ -563,6 +564,14 @@ public class InstalledAppDetails extends Fragment } } mAppEntry = mState.getEntry(packageName); return packageName; } private boolean refreshUi() { if (mMoveInProgress) { return true; } final String packageName = retrieveAppEntry(); if (mAppEntry == null) { return false; // onCreate must have failed, make sure to exit Loading