Fix BuildInfo.isDebuggable to support FeatureFlags with sysui-studio.

Also explicitly log whether the new pipeline rendering is enabled or not.

Fixes: 197343061
Test: manual
Change-Id: I2345d367b9a06c9e7a59c1d34d9b38394aad0f3c
This commit is contained in:
Jeff DeCew
2021-08-20 15:09:49 -04:00
parent c20398b8d1
commit f4ad622cc8
2 changed files with 5 additions and 2 deletions

View File

@@ -100,7 +100,8 @@ public class NotifPipelineInitializer implements Dumpable {
mNotifCollection.attach(mGroupCoalescer);
mGroupCoalescer.attach(notificationService);
Log.d(TAG, "Notif pipeline initialized");
Log.d(TAG, "Notif pipeline initialized."
+ " rendering=" + mFeatureFlags.isNewNotifPipelineRenderingEnabled());
}
@Override

View File

@@ -32,6 +32,8 @@ public class BuildInfo {
/** @see Build#IS_DEBUGGABLE */
public boolean isDebuggable() {
return Build.IS_DEBUGGABLE;
// Build.IS_DEBUGGABLE is inlined by the gradle build, causing this to incorrectly
// return false when using sysui-studio.
return Build.isDebuggable();
}
}