mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Merge "Add logging to investigate updateOverviewTargets state." into tm-qpr-dev am: 570c5146d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20680311 Change-Id: If5371ef5eaf0b1c37ee506dae619e311977490b3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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