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

Commit c703ec39 authored by Stanley Wang's avatar Stanley Wang
Browse files

Launch the following pages with new task flag.

Third-party
Google legal
System WebView

Based on the large screen design, those pages should be launched as
a new task to fulfill the new UI design.

Fix: 197701608
Fix: 197701739
Fix: 197702148
Test: Manually test the UI
Change-Id: Ia1d3a6f99a022f42dc0ee082ae3bf27f89db3cbc
parent e7f8a872
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -87,9 +87,9 @@ public abstract class LegalPreferenceController extends BasePreferenceController
        }

        // Replace the intent with this specific activity
        mPreference.setIntent(new Intent().setClassName(
                resolveInfo.activityInfo.packageName,
                resolveInfo.activityInfo.name));
        mPreference.setIntent(new Intent()
                .setClassName(resolveInfo.activityInfo.packageName, resolveInfo.activityInfo.name)
                .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));

        mPreference.setTitle(resolveInfo.loadLabel(mPackageManager));
    }