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

Commit b3512c27 authored by phweiss's avatar phweiss Committed by Philipp Weiß
Browse files

Use SystemUI Dialog Theme for QSSecurityFooter dialog

Without the ContextThemeWrapper, the dialog's text color
gets changed whenever the QS theme changes.

Bug: 62534577
Test: manual, CTS Verifier > Managed Provisioning > Device Owner Tests
      > Network Logging UI

Change-Id: I408902688b97bb3c6dff06215b12956ae49a4806
(cherry picked from commit da9bee26)
parent 308aa4c8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.text.SpannableStringBuilder;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.util.Log;
import android.view.ContextThemeWrapper;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -244,7 +245,8 @@ public class QSSecurityFooter implements OnClickListener, DialogInterface.OnClic

        mDialog = new SystemUIDialog(mContext);
        mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
        View dialogView = LayoutInflater.from(mContext)
        View dialogView = LayoutInflater.from(
                new ContextThemeWrapper(mContext, R.style.Theme_SystemUI_Dialog))
                .inflate(R.layout.quick_settings_footer_dialog, null, false);
        mDialog.setView(dialogView);
        mDialog.setButton(DialogInterface.BUTTON_POSITIVE, getPositiveButton(), this);