Merge "Fixing nullpointer exception when accessing StatsLogger before initialization" into tm-qpr-dev

This commit is contained in:
Sunny Goyal
2022-06-29 16:17:55 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -77,8 +77,8 @@ public abstract class BaseActivity extends Activity implements AppLauncher,
new ArrayList<>();
protected DeviceProfile mDeviceProfile;
protected StatsLogManager mStatsLogManager;
protected SystemUiController mSystemUiController;
private StatsLogManager mStatsLogManager;
public static final int ACTIVITY_STATE_STARTED = 1 << 0;
+1 -1
View File
@@ -740,7 +740,7 @@ public class Launcher extends StatefulActivity<LauncherState>
completeAddAppWidget(appWidgetId, info, null, null);
break;
case REQUEST_RECONFIGURE_APPWIDGET:
mStatsLogManager.logger().withItemInfo(info).log(LAUNCHER_WIDGET_RECONFIGURED);
getStatsLogManager().logger().withItemInfo(info).log(LAUNCHER_WIDGET_RECONFIGURED);
completeRestoreAppWidget(appWidgetId, LauncherAppWidgetInfo.RESTORE_COMPLETED);
break;
case REQUEST_BIND_PENDING_APPWIDGET: {