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

Commit e5277afa authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Refine the "Share Wi-Fi" activity theme" into main

parents 9f02af79 28899565
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -19,16 +19,19 @@ package com.android.settings.wifi.dpp;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.Log;

import androidx.fragment.app.FragmentManager;

import com.android.settings.R;
import com.android.settings.SetupWizardUtils;
import com.android.settings.core.InstrumentedActivity;

import com.google.android.setupdesign.util.ThemeHelper;

public abstract class WifiDppBaseActivity extends InstrumentedActivity {

    private static final String TAG = "WifiDppBaseActivity";

    protected FragmentManager mFragmentManager;

    protected abstract void handleIntent(Intent intent);
@@ -54,8 +57,8 @@ public abstract class WifiDppBaseActivity extends InstrumentedActivity {
    }

    private void applyTheme() {
        setTheme(SetupWizardUtils.getTheme(this, getIntent()));
        setTheme(R.style.SettingsPreferenceTheme_SetupWizard);
        ThemeHelper.trySetDynamicColor(this);
        if (!ThemeHelper.trySetSuwTheme(this)) {
            Log.e(TAG, "Failed to set SUW theme!");
        }
    }
}