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

Commit 6eee7948 authored by cnchen's avatar cnchen Committed by Cn Chen
Browse files

[Migration] pass suw extra intent to wallpaper page

Bug: b/117080532
Test: atest && maunally test SUW
Change-Id: I8d6854976a67a01cedf0a26f7d8d37196edbb02d
parent def4fd90
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ import androidx.annotation.VisibleForTesting;
import com.android.settings.R;
import com.android.settings.core.SubSettingLauncher;

import com.google.android.setupcompat.util.WizardManagerHelper;

public class WallpaperSuggestionActivity extends Activity {

    @Override
@@ -39,6 +41,10 @@ public class WallpaperSuggestionActivity extends Activity {
                .setClassName(getString(R.string.config_wallpaper_picker_package),
                        getString(R.string.config_wallpaper_picker_class))
                .addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT);

        // passing the necessary extra to next page
        WizardManagerHelper.copyWizardManagerExtras(getIntent(), intent);

        if (pm.resolveActivity(intent, 0) != null) {
            startActivity(intent);
        } else {