Merge "Verify Bundle is not null before using it" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5012f5bdce
@@ -453,14 +453,22 @@ public class GraphicsEnvironment {
|
|||||||
final boolean appIsProfileable = isProfileable(context);
|
final boolean appIsProfileable = isProfileable(context);
|
||||||
final boolean deviceIsDebuggable = getCanLoadSystemLibraries() == 1;
|
final boolean deviceIsDebuggable = getCanLoadSystemLibraries() == 1;
|
||||||
if (appIsDebuggable || appIsProfileable || deviceIsDebuggable) {
|
if (appIsDebuggable || appIsProfileable || deviceIsDebuggable) {
|
||||||
|
String debugPackage;
|
||||||
|
|
||||||
String debugPackage =
|
if (coreSettings != null) {
|
||||||
coreSettings.getString(Settings.Global.GLOBAL_SETTINGS_ANGLE_DEBUG_PACKAGE);
|
debugPackage =
|
||||||
|
coreSettings.getString(Settings.Global.GLOBAL_SETTINGS_ANGLE_DEBUG_PACKAGE);
|
||||||
|
} else {
|
||||||
|
ContentResolver contentResolver = context.getContentResolver();
|
||||||
|
debugPackage = Settings.Global.getString(contentResolver,
|
||||||
|
Settings.Global.GLOBAL_SETTINGS_ANGLE_DEBUG_PACKAGE);
|
||||||
|
}
|
||||||
|
|
||||||
if ((debugPackage != null) && (!debugPackage.isEmpty())) {
|
if ((debugPackage != null) && (!debugPackage.isEmpty())) {
|
||||||
return debugPackage;
|
return debugPackage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user