diff options
| author | George Zacharia <george.zcharia@gmail.com> | 2023-01-04 22:41:45 +0530 |
|---|---|---|
| committer | George Zacharia <george.zcharia@gmail.com> | 2023-01-10 22:03:00 +0530 |
| commit | a7b2e7778aedf15b061d7a4b5a2995118fb1a689 (patch) | |
| tree | 3f49700daee8f38260d4372f6de14806cfc37b39 | |
| parent | 206051686a9b9795a371ef05b996dfde334cbf6f (diff) | |
PredictionService: Serve predictions irrespective of the UI surfacet13.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 |
