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

Commit 6d7e5194 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in user builds"

parents b4e7555b 1fff41fb
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -77,11 +77,11 @@ public class QSCustomizer extends LinearLayout {

        toolbar.getMenu().add(Menu.NONE, MENU_RESET, 0,
                mContext.getString(com.android.internal.R.string.reset));
        if (Build.IS_ENG || Build.IS_USERDEBUG) {
        // Prototype menu item
            toolbar.getMenu().add(Menu.NONE, MENU_REMOVE_LABELS, Menu.NONE, "Remove labels")
                    .setCheckable(true);
        }
        toolbar.getMenu()
                .add(Menu.NONE, MENU_REMOVE_LABELS, Menu.NONE, "Remove labels")
                .setCheckable(true)
                .setVisible(Build.IS_ENG || Build.IS_USERDEBUG);
        toolbar.setTitle(R.string.qs_edit);
        mRecyclerView = findViewById(android.R.id.list);
        mTransparentView = findViewById(R.id.customizer_transparent_view);