summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Zacharia <george.zcharia@gmail.com>2023-01-04 22:41:45 +0530
committerGeorge Zacharia <george.zcharia@gmail.com>2025-04-21 17:19:37 +0530
commit433fc16fdea89b52d1f9f639950609b0a63ff244 (patch)
tree3b3922979ff5af777743fde764e99b60408580a2
parent9c8db8cca0f3ed939348a4724544e37e7dbde593 (diff)
PredictionService: Serve predictions irrespective of the UI surfacev15.0
Includes but not limited to surfaces like hotseat, widget Change-Id: Ie2654b51c7924326c8260c455f1c34237c29b31a
-rw-r--r--src/com/android/apppredictionservice/PredictionService.java6
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