Add logging to catch rare launcher wipe issue
Test: not necessary Bug: 200010396 Change-Id: If7c478e220c2c0ee9f6479b18bf05bf39811b451
This commit is contained in:
1 parent
da76a1defd
commit
971da6c3aa
2 files changed
+25
-8
No files matched your search
@@ -119,12 +119,23 @@ public class DeviceGridState {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
DeviceGridState that = (DeviceGridState) o;
|
||||
return mNumHotseat == that.mNumHotseat
|
||||
&& deviceTypeCompatible(mDeviceType, that.mDeviceType)
|
||||
&& Objects.equals(mGridSizeString, that.mGridSizeString);
|
||||
public String toString() {
|
||||
return "DeviceGridState{"
|
||||
+ "mGridSizeString='" + mGridSizeString + '\''
|
||||
+ ", mNumHotseat=" + mNumHotseat
|
||||
+ ", mDeviceType=" + mDeviceType
|
||||
+ '}';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the database from another DeviceGridState can be loaded into the current
|
||||
* DeviceGridState without migration, or false otherwise.
|
||||
*/
|
||||
public boolean isCompatible(DeviceGridState other) {
|
||||
if (this == other) return true;
|
||||
if (other == null) return false;
|
||||
return mNumHotseat == other.mNumHotseat
|
||||
&& deviceTypeCompatible(mDeviceType, other.mDeviceType)
|
||||
&& Objects.equals(mGridSizeString, other.mGridSizeString);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user