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

Commit 6d75128b authored by DroidFreak32's avatar DroidFreak32 Committed by Bruno Martins
Browse files

LineageParts: Restrict activities to primary profile only

This avoids the "Choose Profile" popup every time these activities
are started when Android for Work is set up on the device or when using
apps like Shelter.

Change-Id: I4e9d74c6c4d16d3191908748c818eb72a16a2240
parent a8e0e2cf
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
<!--
/**
 * Copyright 2016, The CyanogenMod Project
 * Copyright 2017-2022, The LineageOS Project
 * Copyright 2017-2023, The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -123,6 +123,9 @@
            <meta-data
                android:name="com.android.settings.order"
                android:value="-256" />
            <meta-data
                android:name="com.android.settings.profile"
                android:value="primary_profile_only" />
            <meta-data
                android:name="com.android.settings.summary"
                android:resource="@string/summary_empty" />
@@ -152,6 +155,9 @@
            <meta-data
                android:name="com.android.settings.order"
                android:value="-255" />
            <meta-data
                android:name="com.android.settings.profile"
                android:value="primary_profile_only" />
            <meta-data
                android:name="com.android.settings.summary"
                android:resource="@string/summary_empty" />
@@ -179,6 +185,9 @@
            <meta-data
                android:name="com.android.settings.order"
                android:value="-254" />
            <meta-data
                android:name="com.android.settings.profile"
                android:value="primary_profile_only" />
            <meta-data
                android:name="com.android.settings.summary"
                android:resource="@string/summary_empty" />
@@ -200,6 +209,9 @@
            <meta-data
                android:name="com.android.settings.order"
                android:value="0" />
            <meta-data
                android:name="com.android.settings.profile"
                android:value="primary_profile_only" />
            <meta-data
                android:name="com.android.settings.summary"
                android:resource="@string/summary_empty" />
@@ -221,6 +233,9 @@
            <meta-data
                android:name="com.android.settings.order"
                android:value="2" />
            <meta-data
                android:name="com.android.settings.profile"
                android:value="primary_profile_only" />
            <meta-data
                android:name="com.android.settings.summary"
                android:resource="@string/summary_empty" />