Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1f21bf3 authored by LuK1337's avatar LuK1337
Browse files

Don't discard custom grid on config changes

Change-Id: Ibfa2eafec50c9fe79d1e9594ddc68fb5266ecb18
parent 5e7e7098
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -288,9 +288,7 @@ public class InvariantDeviceProfile {
        InvariantDeviceProfile oldProfile = new InvariantDeviceProfile(this);

        // Re-init grid
        // TODO(b/131867841): We pass in null here so that we can calculate the closest profile
        // without the bias of the grid name.
        initGrid(context, null);
        initGrid(context, Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, null));

        int changeFlags = 0;
        if (numRows != oldProfile.numRows ||