Create hotseat predictor onCreate am: c3f13e01a3 am: dad117a2c4

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11917536

Change-Id: I7a6bac1b790d50fe7fb57fba2e8391a124edaeca
This commit is contained in:
Samuel Fufa
2020-06-19 08:00:11 +00:00
committed by Automerger Merge Worker
@@ -29,6 +29,7 @@ import static com.android.quickstep.SysUINavigationMode.Mode.NO_BUTTON;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
@@ -90,12 +91,19 @@ public class QuickstepLauncher extends BaseQuickstepLauncher {
public static final AsyncCommand SET_SHELF_HEIGHT = (context, arg1, arg2) ->
SystemUiProxy.INSTANCE.get(context).setShelfHeight(arg1 != 0, arg2);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (mHotseatPredictionController != null) {
mHotseatPredictionController.createPredictor();
}
}
@Override
protected void setupViews() {
super.setupViews();
if (FeatureFlags.ENABLE_HYBRID_HOTSEAT.get()) {
mHotseatPredictionController = new HotseatPredictionController(this);
mHotseatPredictionController.createPredictor();
}
}