Avoid crashing
Bug: 22202631 Change-Id: I1980f77ae4300dbd19d6829dc5974bab0b88d612
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