mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Ignoring display size change when display is off
Bug: 198965093 Test: Verified with the script provided on the bug Change-Id: I0efaa5a9b7be94f406a9c283219c715a6c430256
This commit is contained in:
@@ -24,7 +24,6 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
|
||||
@@ -135,17 +134,8 @@ public class DeviceGridState {
|
||||
public boolean isCompatible(DeviceGridState other) {
|
||||
if (this == other) return true;
|
||||
if (other == null) return false;
|
||||
boolean isCompatible = mNumHotseat == other.mNumHotseat
|
||||
return mNumHotseat == other.mNumHotseat
|
||||
&& deviceTypeCompatible(mDeviceType, other.mDeviceType)
|
||||
&& Objects.equals(mGridSizeString, other.mGridSizeString);
|
||||
// TODO(b/198965093): Temporary fix for multi-display devices, ignore hotseat size changes
|
||||
// and type compatibility.
|
||||
if ((mDeviceType == TYPE_MULTI_DISPLAY || other.mDeviceType == TYPE_MULTI_DISPLAY)
|
||||
&& !isCompatible && Objects.equals(mGridSizeString, other.mGridSizeString)) {
|
||||
Log.d("b/198965093", "Hotseat and deice type compatibility ignored: " + this
|
||||
+ ", other: " + other);
|
||||
isCompatible = true;
|
||||
}
|
||||
return isCompatible;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user