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

Commit 3175a6e3 authored by Jason Monk's avatar Jason Monk
Browse files

Guard against monkey crash

Bug: 25795998
Change-Id: I351faae1e29d09b7577435207ec466a1ff5ed237
parent 26d17d6e
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -143,6 +143,9 @@ public class SettingsDrawerActivity extends Activity {


    public boolean openTile(DashboardTile tile) {
    public boolean openTile(DashboardTile tile) {
        closeDrawer();
        closeDrawer();
        if (tile == null) {
            return false;
        }
        int numUserHandles = tile.userHandle.size();
        int numUserHandles = tile.userHandle.size();
        if (numUserHandles > 1) {
        if (numUserHandles > 1) {
            ProfileSelectDialog.show(getFragmentManager(), tile);
            ProfileSelectDialog.show(getFragmentManager(), tile);