diff options
| author | George Zacharia <george.zcharia@gmail.com> | 2023-01-04 22:41:45 +0530 |
|---|---|---|
| committer | Julian Veit <Claymore1298@gmail.com> | 2024-07-16 21:23:50 +0200 |
| commit | 450985c46c42c390c3619e77fcb95b8d49818c39 (patch) | |
| tree | 3f49700daee8f38260d4372f6de14806cfc37b39 | |
| parent | 7dc824fffc573b55ed8b390427b4150f7f3c5902 (diff) | |
PredictionService: Serve predictions irrespective of the UI surfaceu14.0
Includes but not limited to surfaces like hotseat, widget
Change-Id: Ie2654b51c7924326c8260c455f1c34237c29b31a
| -rw-r--r-- | src/com/android/apppredictionservice/PredictionService.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/apppredictionservice/PredictionService.java b/src/com/android/apppredictionservice/PredictionService.java index b0ef5fa..4e87535 100644 --- a/src/com/android/apppredictionservice/PredictionService.java +++ b/src/com/android/apppredictionservice/PredictionService.java @@ -148,10 +148,8 @@ public class PredictionService extends AppPredictionService { AppPredictionContext context, AppPredictionSessionId sessionId) { if (DEBUG) Log.d(TAG, "onCreatePredictionSession"); - if (context.getUiSurface().equals("home") || context.getUiSurface().equals("overview")) { - activeLauncherSessions.add(sessionId); - postPredictionUpdate(sessionId); - } + activeLauncherSessions.add(sessionId); + postPredictionUpdate(sessionId); } @Override |
