Fix one-handed mode tap app to exit doesn't work in factory boot

Root cause:
1. Design change "tap app to exit" -> always being true, and settings
remove this option.
2. Tuning performance, due to 1, no longer listens to the key change,
so we remove the listener.

Solution:
Change getSettingsTapsAppToExit() API to return default TRUE.

Bug: 195629000
Test: Build ROM and factory-reset to test
Test: atest WMShellUnitTests
Change-Id: Id3c265258ed28f7e0aa54505c339671885d28fa7
This commit is contained in:
Jason Chang
2021-08-05 20:22:51 +08:00
committed by Bill Lin
parent 9eee7d3f29
commit 413ab9d586

View File

@@ -130,7 +130,7 @@ public final class OneHandedSettingsUtil {
*/
public boolean getSettingsTapsAppToExit(ContentResolver resolver, int userId) {
return Settings.Secure.getIntForUser(resolver,
Settings.Secure.TAPS_APP_TO_EXIT, 0, userId) == 1;
Settings.Secure.TAPS_APP_TO_EXIT, 1, userId) == 1;
}
/**