mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Merge "Address AppEventProducer to correctly send search-result location on AppTargetEvent" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
664f685336
@@ -271,9 +271,6 @@ public class AppEventProducer implements StatsLogConsumer {
|
||||
case ALL_APPS_CONTAINER: {
|
||||
return "all-apps";
|
||||
}
|
||||
case SEARCH_RESULT_CONTAINER: {
|
||||
return "search-results";
|
||||
}
|
||||
case PREDICTED_HOTSEAT_CONTAINER: {
|
||||
return "predictions/hotseat";
|
||||
}
|
||||
@@ -293,6 +290,16 @@ public class AppEventProducer implements StatsLogConsumer {
|
||||
}
|
||||
return "folder";
|
||||
}
|
||||
case SEARCH_RESULT_CONTAINER:
|
||||
return "search-results";
|
||||
case EXTENDED_CONTAINERS: {
|
||||
switch(ci.getExtendedContainers().getContainerCase()) {
|
||||
case DEVICE_SEARCH_RESULT_CONTAINER:
|
||||
case CORRECTED_DEVICE_SEARCH_RESULT_CONTAINER:
|
||||
return "search-results";
|
||||
}
|
||||
}
|
||||
default: // fall out
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -329,6 +329,8 @@ public class QuickstepModelDelegate extends ModelDelegate {
|
||||
}
|
||||
if (state.predictor != null) {
|
||||
state.predictor.notifyAppTargetEvent(event);
|
||||
Log.d(TAG, "notifyAppTargetEvent action=" + event.getAction()
|
||||
+ " launchLocation=" + event.getLaunchLocation());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user