Loading quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatEduController.java +6 −2 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ public class HotseatEduController { } Snackbar.show(mLauncher, R.string.hotsaet_tip_prediction_enabled, R.string.hotseat_prediction_settings, null, () -> mLauncher.startActivity(new Intent(SETTINGS_ACTION))); () -> mLauncher.startActivity(getSettingsIntent())); } /** Loading Loading @@ -237,7 +237,7 @@ public class HotseatEduController { < mLauncher.getDeviceProfile().inv.numHotseatIcons) { Snackbar.show(mLauncher, R.string.hotseat_tip_gaps_filled, R.string.hotseat_prediction_settings, null, () -> mLauncher.startActivity(new Intent(SETTINGS_ACTION))); () -> mLauncher.startActivity(getSettingsIntent())); } else { new ArrowTipView(mLauncher).show( mLauncher.getString(R.string.hotseat_tip_no_empty_slots), mHotseat.getTop()); Loading Loading @@ -281,5 +281,9 @@ public class HotseatEduController { mActiveDialog.setHotseatEduController(this); mActiveDialog.show(mPredictedApps); } static Intent getSettingsIntent() { return new Intent(SETTINGS_ACTION).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); } } quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatPredictionController.java +3 −5 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ package com.android.launcher3.hybridhotseat; import static com.android.launcher3.InvariantDeviceProfile.CHANGE_FLAG_GRID; import static com.android.launcher3.LauncherAnimUtils.SCALE_PROPERTY; import static com.android.launcher3.hybridhotseat.HotseatEduController.SETTINGS_ACTION; import static com.android.launcher3.hybridhotseat.HotseatEduController.getSettingsIntent; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_HOTSEAT_RANKED; import android.animation.Animator; Loading @@ -29,7 +29,6 @@ import android.app.prediction.AppPredictor; import android.app.prediction.AppTarget; import android.app.prediction.AppTargetEvent; import android.content.ComponentName; import android.content.Intent; import android.os.Process; import android.util.Log; import android.view.View; Loading Loading @@ -158,8 +157,7 @@ public class HotseatPredictionController implements DragController.DragListener, // launcher has empty predictions set Snackbar.show(mLauncher, R.string.hotsaet_tip_prediction_disabled, R.string.hotseat_prediction_settings, null, () -> mLauncher.startActivity( new Intent(SETTINGS_ACTION))); () -> mLauncher.startActivity(getSettingsIntent())); } else if (isEduSeen()) { // user has already went through education new ArrowTipView(mLauncher).show( Loading @@ -183,7 +181,7 @@ public class HotseatPredictionController implements DragController.DragListener, } else { Snackbar.show(mLauncher, R.string.hotseat_tip_gaps_filled, R.string.hotseat_prediction_settings, null, () -> mLauncher.startActivity(new Intent(SETTINGS_ACTION))); () -> mLauncher.startActivity(HotseatEduController.getSettingsIntent())); } } Loading Loading
quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatEduController.java +6 −2 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ public class HotseatEduController { } Snackbar.show(mLauncher, R.string.hotsaet_tip_prediction_enabled, R.string.hotseat_prediction_settings, null, () -> mLauncher.startActivity(new Intent(SETTINGS_ACTION))); () -> mLauncher.startActivity(getSettingsIntent())); } /** Loading Loading @@ -237,7 +237,7 @@ public class HotseatEduController { < mLauncher.getDeviceProfile().inv.numHotseatIcons) { Snackbar.show(mLauncher, R.string.hotseat_tip_gaps_filled, R.string.hotseat_prediction_settings, null, () -> mLauncher.startActivity(new Intent(SETTINGS_ACTION))); () -> mLauncher.startActivity(getSettingsIntent())); } else { new ArrowTipView(mLauncher).show( mLauncher.getString(R.string.hotseat_tip_no_empty_slots), mHotseat.getTop()); Loading Loading @@ -281,5 +281,9 @@ public class HotseatEduController { mActiveDialog.setHotseatEduController(this); mActiveDialog.show(mPredictedApps); } static Intent getSettingsIntent() { return new Intent(SETTINGS_ACTION).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); } }
quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatPredictionController.java +3 −5 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ package com.android.launcher3.hybridhotseat; import static com.android.launcher3.InvariantDeviceProfile.CHANGE_FLAG_GRID; import static com.android.launcher3.LauncherAnimUtils.SCALE_PROPERTY; import static com.android.launcher3.hybridhotseat.HotseatEduController.SETTINGS_ACTION; import static com.android.launcher3.hybridhotseat.HotseatEduController.getSettingsIntent; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_HOTSEAT_RANKED; import android.animation.Animator; Loading @@ -29,7 +29,6 @@ import android.app.prediction.AppPredictor; import android.app.prediction.AppTarget; import android.app.prediction.AppTargetEvent; import android.content.ComponentName; import android.content.Intent; import android.os.Process; import android.util.Log; import android.view.View; Loading Loading @@ -158,8 +157,7 @@ public class HotseatPredictionController implements DragController.DragListener, // launcher has empty predictions set Snackbar.show(mLauncher, R.string.hotsaet_tip_prediction_disabled, R.string.hotseat_prediction_settings, null, () -> mLauncher.startActivity( new Intent(SETTINGS_ACTION))); () -> mLauncher.startActivity(getSettingsIntent())); } else if (isEduSeen()) { // user has already went through education new ArrowTipView(mLauncher).show( Loading @@ -183,7 +181,7 @@ public class HotseatPredictionController implements DragController.DragListener, } else { Snackbar.show(mLauncher, R.string.hotseat_tip_gaps_filled, R.string.hotseat_prediction_settings, null, () -> mLauncher.startActivity(new Intent(SETTINGS_ACTION))); () -> mLauncher.startActivity(HotseatEduController.getSettingsIntent())); } } Loading