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

This commit is contained in:
Jeff DeCew
2021-08-21 12:50:59 +00:00
committed by Android (Google) Code Review
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();
}
}