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

Commit be309fab authored by Weili Yao's avatar Weili Yao Committed by Josh Guilfoyle
Browse files

Added theming for progress dialog

CR: Josh Guilfoyle
parent a844baa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ public class AlertDialog extends Dialog implements DialogInterface {
        mAlert = new AlertController(getContext(), this, getWindow());
    }
    
    private static int resolveDefaultTheme(Context context, int theme) {
    static int resolveDefaultTheme(Context context, int theme) {
        return Dialog.resolveDefaultTheme(context, theme,
                android.R.styleable.Theme_alertDialogTheme,
                com.android.internal.R.style.Theme_Dialog_Alert);
+2 −2
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ public class ProgressDialog extends AlertDialog {
    }

    public ProgressDialog(Context context, int theme) {
        super(context, theme);
        super(context, resolveDefaultTheme(context, theme));
    }
    
    public static ProgressDialog show(Context context, CharSequence title,
+2 −2
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ public class ProgressBar extends View {
        
        mNoInvalidate = true;
        
        Drawable drawable = a.getDrawable(R.styleable.ProgressBar_progressDrawable);
        Drawable drawable = a.getDrawableWithContext(context, R.styleable.ProgressBar_progressDrawable);
        if (drawable != null) {
            drawable = tileify(drawable, false);
            setProgressDrawable(drawable);
@@ -201,7 +201,7 @@ public class ProgressBar extends View {
        setSecondaryProgress(
                a.getInt(R.styleable.ProgressBar_secondaryProgress, mSecondaryProgress));

        drawable = a.getDrawable(R.styleable.ProgressBar_indeterminateDrawable);
        drawable = a.getDrawableWithContext(context, R.styleable.ProgressBar_indeterminateDrawable);
        if (drawable != null) {
            drawable = tileifyIndeterminate(drawable);
            setIndeterminateDrawable(drawable);