Merge "Fix NPE if app context is null" into pi-dev
am: a08a8569bf
Change-Id: I64ad0cbfa7e30cf298ba7e658cf0edab1e14630f
This commit is contained in:
@@ -1068,11 +1068,15 @@ public final class ThreadedRenderer {
|
||||
mInitialized = true;
|
||||
mAppContext = context.getApplicationContext();
|
||||
|
||||
nSetDebuggingEnabled(
|
||||
(mAppContext.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0
|
||||
|| Build.IS_DEBUGGABLE);
|
||||
initSched(renderProxy);
|
||||
initGraphicsStats();
|
||||
|
||||
if (mAppContext != null) {
|
||||
final boolean appDebuggable =
|
||||
(mAppContext.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)
|
||||
!= 0;
|
||||
nSetDebuggingEnabled(appDebuggable || Build.IS_DEBUGGABLE);
|
||||
initGraphicsStats();
|
||||
}
|
||||
}
|
||||
|
||||
private void initSched(long renderProxy) {
|
||||
|
||||
Reference in New Issue
Block a user