Merge "Add logs for OPS launcher broadcast" into tm-qpr-dev am: b026dbf3b3 am: cc6f05f4e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22480615 Change-Id: I8f4fc3d433c957b782f88bcdca3b1f2cb664c242 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package com.android.systemui.recents;
|
package com.android.systemui.recents;
|
||||||
|
|
||||||
|
import static android.content.Intent.EXTRA_CHANGED_COMPONENT_NAME_LIST;
|
||||||
import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY;
|
import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY;
|
||||||
import static android.view.MotionEvent.ACTION_CANCEL;
|
import static android.view.MotionEvent.ACTION_CANCEL;
|
||||||
import static android.view.MotionEvent.ACTION_DOWN;
|
import static android.view.MotionEvent.ACTION_DOWN;
|
||||||
@@ -392,6 +393,16 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
|
|||||||
private final BroadcastReceiver mLauncherStateChangedReceiver = new BroadcastReceiver() {
|
private final BroadcastReceiver mLauncherStateChangedReceiver = new BroadcastReceiver() {
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
|
StringBuilder extraComponentList = new StringBuilder(" components: ");
|
||||||
|
if (intent.hasExtra(EXTRA_CHANGED_COMPONENT_NAME_LIST)) {
|
||||||
|
String[] comps = intent.getStringArrayExtra(EXTRA_CHANGED_COMPONENT_NAME_LIST);
|
||||||
|
if (comps != null) {
|
||||||
|
for (String c : comps) {
|
||||||
|
extraComponentList.append(c).append(", ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Log.d(TAG_OPS, "launcherStateChanged intent: " + intent + extraComponentList);
|
||||||
updateEnabledState();
|
updateEnabledState();
|
||||||
|
|
||||||
// Reconnect immediately, instead of waiting for resume to arrive.
|
// Reconnect immediately, instead of waiting for resume to arrive.
|
||||||
@@ -402,9 +413,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
|
|||||||
private final ServiceConnection mOverviewServiceConnection = new ServiceConnection() {
|
private final ServiceConnection mOverviewServiceConnection = new ServiceConnection() {
|
||||||
@Override
|
@Override
|
||||||
public void onServiceConnected(ComponentName name, IBinder service) {
|
public void onServiceConnected(ComponentName name, IBinder service) {
|
||||||
if (SysUiState.DEBUG) {
|
|
||||||
Log.d(TAG_OPS, "Overview proxy service connected");
|
Log.d(TAG_OPS, "Overview proxy service connected");
|
||||||
}
|
|
||||||
mConnectionBackoffAttempts = 0;
|
mConnectionBackoffAttempts = 0;
|
||||||
mHandler.removeCallbacks(mDeferredConnectionCallback);
|
mHandler.removeCallbacks(mDeferredConnectionCallback);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user