(3/n) Handling long-pressed action for One-handed mode Quick Settings
tile Handling Intent action when long-pressed on One-handed mode Quick Settings tile . Bug: 201743873 Bug: 202132480 Test: Manually test Change-Id: Ib532bd1582fa87bd11c3ec1ee80ad771a78e96d2
This commit is contained in:
@@ -4233,6 +4233,25 @@
|
||||
android:theme="@style/SudThemeGlif.Light">
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name="Settings$OneHandedSettingsActivity"
|
||||
android:label="@string/one_handed_title"
|
||||
android:exported="true"
|
||||
android:enabled="true">
|
||||
<intent-filter android:priority="1">
|
||||
<action android:name="android.intent.action.ONE_HANDED_SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<intent-filter android:priority="1">
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="com.android.settings.SHORTCUT" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
|
||||
android:value="com.android.settings.gestures.OneHandedSettings"/>
|
||||
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
|
||||
android:value="true" />
|
||||
</activity>
|
||||
|
||||
<!-- This is the longest AndroidManifest.xml ever. -->
|
||||
</application>
|
||||
</manifest>
|
||||
|
@@ -326,4 +326,9 @@ public class Settings extends SettingsActivity {
|
||||
public static class AppDashboardActivity extends SettingsActivity {}
|
||||
|
||||
public static class AdaptiveBrightnessActivity extends SettingsActivity { /* empty */ }
|
||||
|
||||
/**
|
||||
* Activity for OneHandedSettings
|
||||
*/
|
||||
public static class OneHandedSettingsActivity extends SettingsActivity { /* empty */ }
|
||||
}
|
||||
|
@@ -100,6 +100,7 @@ import com.android.settings.gestures.DoubleTapPowerSettings;
|
||||
import com.android.settings.gestures.DoubleTapScreenSettings;
|
||||
import com.android.settings.gestures.DoubleTwistGestureSettings;
|
||||
import com.android.settings.gestures.GestureNavigationSettingsFragment;
|
||||
import com.android.settings.gestures.OneHandedSettings;
|
||||
import com.android.settings.gestures.PickupGestureSettings;
|
||||
import com.android.settings.gestures.PowerMenuSettings;
|
||||
import com.android.settings.gestures.SwipeToNotificationSettings;
|
||||
@@ -321,7 +322,8 @@ public class SettingsGateway {
|
||||
NetworkProviderSettings.class.getName(),
|
||||
AlarmsAndRemindersDetails.class.getName(),
|
||||
MediaManagementAppsDetails.class.getName(),
|
||||
AutoBrightnessSettings.class.getName()
|
||||
AutoBrightnessSettings.class.getName(),
|
||||
OneHandedSettings.class.getName()
|
||||
};
|
||||
|
||||
public static final String[] SETTINGS_FOR_RESTRICTED = {
|
||||
|
Reference in New Issue
Block a user