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

Commit f100eea3 authored by Mikael Magnusson's avatar Mikael Magnusson Committed by android-build-merger
Browse files

Merge "Prevent ArrayIndexOutOfBoundsException for some invalid sysui_nav_bar...

Merge "Prevent ArrayIndexOutOfBoundsException for some invalid sysui_nav_bar values" am: af5b90ff am: e01fe741
am: 1b1ecc13

Change-Id: I6572a9f3c6c02fcca45342c478391891bf93e3b9
parents 9f2222f6 1b1ecc13
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -220,6 +220,11 @@ public class NavigationBarInflaterView extends FrameLayout
            newLayout = getDefaultLayout();
        }
        String[] sets = newLayout.split(GRAVITY_SEPARATOR, 3);
        if (sets.length != 3) {
            Log.d(TAG, "Invalid layout.");
            newLayout = getDefaultLayout();
            sets = newLayout.split(GRAVITY_SEPARATOR, 3);
        }
        String[] start = sets[0].split(BUTTON_SEPARATOR);
        String[] center = sets[1].split(BUTTON_SEPARATOR);
        String[] end = sets[2].split(BUTTON_SEPARATOR);