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

Commit d1fecb13 authored by Michael Bestas's avatar Michael Bestas Committed by Michael Bestas
Browse files

SystemUI: Use already existing overlay to show QS auto brightness

* No need for a new overlay when one exists for years

Change-Id: I9e09a1770f8e645093e880cf1a48597405e0bcf2
parent f3faf1ff
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -293,7 +293,4 @@

    <bool name="config_show4gForIWlan">false</bool>
    <bool name="config_showSignalForIWlan">false</bool>

    <!-- When true, show the AutoBrightness imageview -->
    <bool name="config_show_auto_brightness">true</bool>
</resources>
+2 −1
Original line number Diff line number Diff line
@@ -109,7 +109,8 @@ public class QSPanel extends LinearLayout implements Tunable, Callback {
                R.layout.qs_paged_tile_layout, this, false);
        mTileLayout.setListening(mListening);
        addView((View) mTileLayout);
        if (getResources().getBoolean(R.bool.config_show_auto_brightness)) {
        if (getResources().getBoolean(
                com.android.internal.R.bool.config_automatic_brightness_available)) {
            ((ImageView) findViewById(R.id.brightness_icon)).setVisibility(View.VISIBLE);
        }
    }