Merge "Add logging to investigate updateOverviewTargets state." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
570c5146d3
@@ -34,6 +34,7 @@ import android.content.pm.ActivityInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.pm.ResolveInfo;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.util.SparseIntArray;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -54,6 +55,8 @@ import java.util.function.Consumer;
|
||||
* and provide callers the relevant classes.
|
||||
*/
|
||||
public final class OverviewComponentObserver {
|
||||
private static final String TAG = "OverviewComponentObserver";
|
||||
|
||||
private final BroadcastReceiver mUserPreferenceChangeReceiver =
|
||||
new SimpleBroadcastReceiver(this::updateOverviewTargets);
|
||||
private final BroadcastReceiver mOtherHomeAppUpdateReceiver =
|
||||
@@ -146,7 +149,12 @@ public final class OverviewComponentObserver {
|
||||
}
|
||||
}
|
||||
|
||||
if (!mDeviceState.isHomeDisabled() && (defaultHome == null || mIsDefaultHome)) {
|
||||
// TODO(b/258022658): Remove temporary logging.
|
||||
Log.i(TAG, "updateOverviewTargets: mIsHomeDisabled=" + mIsHomeDisabled
|
||||
+ ", isDefaultHomeNull=" + (defaultHome == null)
|
||||
+ ", mIsDefaultHome=" + mIsDefaultHome);
|
||||
|
||||
if (!mIsHomeDisabled && (defaultHome == null || mIsDefaultHome)) {
|
||||
// User default home is same as out home app. Use Overview integrated in Launcher.
|
||||
mActivityInterface = LauncherActivityInterface.INSTANCE;
|
||||
mIsHomeAndOverviewSame = true;
|
||||
|
||||
Reference in New Issue
Block a user