am f7806581
: Avoid crashing
* commit 'f7806581e582e5921d0eb4caa9751d1aa429bc47': Avoid crashing
This commit is contained in:
@@ -346,7 +346,7 @@ public class InstalledAppDetails extends AppInfoBase
|
|||||||
mMemoryPreference.setOnPreferenceClickListener(this);
|
mMemoryPreference.setOnPreferenceClickListener(this);
|
||||||
|
|
||||||
mLaunchPreference = findPreference(KEY_LAUNCH);
|
mLaunchPreference = findPreference(KEY_LAUNCH);
|
||||||
if (mAppEntry.info != null) {
|
if (mAppEntry != null && mAppEntry.info != null) {
|
||||||
if ((mAppEntry.info.flags&ApplicationInfo.FLAG_INSTALLED) == 0 ||
|
if ((mAppEntry.info.flags&ApplicationInfo.FLAG_INSTALLED) == 0 ||
|
||||||
!mAppEntry.info.enabled) {
|
!mAppEntry.info.enabled) {
|
||||||
mLaunchPreference.setEnabled(false);
|
mLaunchPreference.setEnabled(false);
|
||||||
|
Reference in New Issue
Block a user