diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatPredictionController.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatPredictionController.java index 8f6081bd69..c2b55ab0c9 100644 --- a/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatPredictionController.java +++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatPredictionController.java @@ -56,6 +56,7 @@ import com.android.launcher3.appprediction.DynamicItemCache; import com.android.launcher3.dragndrop.DragController; import com.android.launcher3.dragndrop.DragOptions; import com.android.launcher3.icons.IconCache; +import com.android.launcher3.logging.FileLog; import com.android.launcher3.popup.SystemShortcut; import com.android.launcher3.shortcuts.ShortcutKey; import com.android.launcher3.touch.ItemLongClickListener; @@ -300,6 +301,7 @@ public class HotseatPredictionController implements DragController.DragListener, private void setPredictedApps(List appTargets) { mComponentKeyMappers.clear(); + StringBuilder predictionLog = new StringBuilder("predictedApps: [\n"); for (AppTarget appTarget : appTargets) { ComponentKey key; if (appTarget.getShortcutInfo() != null) { @@ -308,8 +310,14 @@ public class HotseatPredictionController implements DragController.DragListener, key = new ComponentKey(new ComponentName(appTarget.getPackageName(), appTarget.getClassName()), appTarget.getUser()); } + predictionLog.append(key.toString()); + predictionLog.append(",rank:"); + predictionLog.append(appTarget.getRank()); + predictionLog.append("\n"); mComponentKeyMappers.add(new ComponentKeyMapper(key, mDynamicItemCache)); } + predictionLog.append("]"); + FileLog.d(TAG, predictionLog.toString()); updateDependencies(); if (isReady()) { fillGapsWithPrediction(); diff --git a/quickstep/res/values/strings.xml b/quickstep/res/values/strings.xml index 2b21df8ed2..5f81e1f5e5 100644 --- a/quickstep/res/values/strings.xml +++ b/quickstep/res/values/strings.xml @@ -75,11 +75,11 @@ To pin a favorite app, drag it over a suggested app. To hide a suggested app, touch & hold it. - Your hotseat items have been moved to the last page. + Bottom row of apps moved to last screen - You can remove items from the hotseat manually to see suggested apps in their spot. + Bottom row won\'t be replaced. Manually drag apps for predictions. - I\'m in + Turn On No thanks