mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Merge "Print out debug logging in bug report if not running test." into udc-qpr-dev
This commit is contained in:
@@ -87,6 +87,7 @@ public class StatsLogCompatManager extends StatsLogManager {
|
||||
private static final String LATENCY_TAG = "StatsLatencyLog";
|
||||
private static final String IMPRESSION_TAG = "StatsImpressionLog";
|
||||
private static final boolean IS_VERBOSE = Utilities.isPropertyEnabled(LogConfig.STATSLOG);
|
||||
private static final boolean DEBUG = !Utilities.isRunningInTestHarness();
|
||||
private static final InstanceId DEFAULT_INSTANCE_ID = InstanceId.fakeInstanceId(0);
|
||||
// LauncherAtom.ItemInfo.getDefaultInstance() should be used but until launcher proto migrates
|
||||
// from nano to lite, bake constant to prevent robo test failure.
|
||||
@@ -326,6 +327,11 @@ public class StatsLogCompatManager extends StatsLogManager {
|
||||
if (!Utilities.ATLEAST_R) {
|
||||
return;
|
||||
}
|
||||
if (DEBUG) {
|
||||
String name = (event instanceof Enum) ? ((Enum) event).name() :
|
||||
event.getId() + "";
|
||||
Log.d(TAG, name);
|
||||
}
|
||||
LauncherAppState appState = LauncherAppState.getInstanceNoCreate();
|
||||
|
||||
if (mSlice == null && mSliceItem != null) {
|
||||
|
||||
Reference in New Issue
Block a user