* Animation by Sahul Krishan
* Adapt to Android 11 by @mickaelmendes50
[Hernán Castañón] Adaptive Playback: allow choosing no timeout.
Co-authored-by: Hernán Castañón Álvarez <herna@paranoidandroid.co>
Change-Id: I82c20b89d06b722d8f9da1bdb14eb096a7d088c9
AdaptivePlayback: Add a intro text to the fragment
* Let's help users to understand what the feature does
by adding a little introduction text.
Change-Id: Ie9ef15d7f60ab2197c30c79434c9fb876c498cd5
Co-authored-by: AshutoshSundresh <ashutoshsundresh@gmail.com>
Signed-off-by: Mesquita <mesquita@aospa.co>
Settings: Move "Adaptive Playback" option to Sound Settings.
* Our gestures category looks bloated with features.
Move this to Sound Settings where it feels better and more homely.
Change-Id: I28fd022a4998141435a1e89a027b7a1fe6f75537
Signed-off-by: Mesquita <mesquita@aospa.co>
AdaptivePlayback: Rename it to 'Smart Pause' to keep a better fluency
* As we already have an 'Adaptive Sound' in sound settings
Change-Id: Iaca4b7d65fe490ee6462ba49907316930deaeaa5
Signed-off-by: Mesquita <mesquita@aospa.co>
Change-Id: I82c20b89d06b722d8f9da1bdb14eb096a7d088c9
Avoid scrolling by making the illustration fit available space.
Change-Id: I5300875b7790ee3664eff22d3517289ed04ef696
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
Using a fixed layout size meant that the view was becoming scrollable
in landscape mode. Instead use the parent size with a max height and
width. Center the layout and cleanup unused elements while at it.
Change-Id: If39d67d679a3e77bc9210e98885b4addfd1660d7
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
Add null and bounds checks to prevent crashes when accessing the
fingerprint_acquired_vendor string array. This ensures safe fallback
behavior and logs appropriate error messages when the index is invalid.
Also improves stability during enrollment help handling on Google devices.
05-23 22:59:15.144 11647 11647 E AndroidRuntime: FATAL EXCEPTION: main
05-23 22:59:15.144 11647 11647 E AndroidRuntime: Process: com.android.settings, PID: 11647
05-23 22:59:15.144 11647 11647 E AndroidRuntime: java.lang.IllegalArgumentException: vendor string index is out of range of [0, -1] (too high)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at com.android.settings.biometrics.fingerprint.feature.SfpsEnrollmentFeatureImpl.getVendorString(go/retraceme bb4a03fdc34cff7f722829db90aff515e0ae20b72b33e5004f74889672317151:33)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at com.android.settings.biometrics.fingerprint.feature.SfpsEnrollmentFeatureImpl.getFeaturedVendorString(go/retraceme bb4a03fdc34cff7f722829db90aff515e0ae20b72b33e5004f74889672317151:48)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at com.android.settings.biometrics.fingerprint.FingerprintEnrollEnrolling.onEnrollmentHelp(go/retraceme bb4a03fdc34cff7f722829db90aff515e0ae20b72b33e5004f74889672317151:7)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at com.android.settings.biometrics.BiometricEnrollSidecar.onEnrollmentHelp(go/retraceme bb4a03fdc34cff7f722829db90aff515e0ae20b72b33e5004f74889672317151:5)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at com.android.settings.biometrics.fingerprint.FingerprintEnrollSidecar.access$201(go/retraceme bb4a03fdc34cff7f722829db90aff515e0ae20b72b33e5004f74889672317151:1)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at com.android.settings.biometrics.fingerprint.FingerprintEnrollSidecar$1.onEnrollmentHelp(go/retraceme bb4a03fdc34cff7f722829db90aff515e0ae20b72b33e5004f74889672317151:3)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at com.android.settings.biometrics.fingerprint.FingerprintUpdater$NotifyingEnrollmentCallback.onEnrollmentHelp(go/retraceme bb4a03fdc34cff7f722829db90aff515e0ae20b72b33e5004f74889672317151:3)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at android.hardware.fingerprint.FingerprintCallback.sendAcquiredResult(FingerprintCallback.java:199)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at android.hardware.fingerprint.FingerprintManager$FingerprintServiceReceiver.lambda$onAcquired$1(FingerprintManager.java:1572)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at android.hardware.fingerprint.FingerprintManager$FingerprintServiceReceiver.$r8$lambda$wcZms5DTCBGW5VTEeJRCWEIwTW4(Unknown Source:0)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at android.hardware.fingerprint.FingerprintManager$FingerprintServiceReceiver$$ExternalSyntheticLambda10.run(D8$$SyntheticClass:0)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:991)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:232)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at android.os.Looper.loop(Looper.java:317)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8930)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:595)
05-23 22:59:15.144 11647 11647 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
AICP Pie: Modified defaults to false.
Brought up to 10 with androidx
@jhenrique09 edits: Adapt strings, and also use config_pocketModeSupported on isAvailable
Change-Id: I398c8f0be23c27cbcf1fb57eed44a801b31bc6c9
Settings: Remove pocket lock toggle icons
* Also move it to lockscreen settings
Change-Id: Iae8a6b4739c317e723c0cfad46db5ceb494f74f8
Signed-off-by: Dmitrii <bankersenator@gmail.com>
* [joeyhuab] Adapt to A16; Remove MainSwitchPreference.updateStatus like 041bc113eb
Separate configs for st2w and lift to wake
Follow our convention in the rest of the switches in that page
Change-Id: Ibd82d808aca2caf3f9c4518eb0c2e5f60669759e
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: Edwiin Kusuma Jaya <kutemeikito0905@gmail.com>
This allows Inter Dynamic Metrics to take effect.
Change-Id: I587d2b94bba73e3c6f85b421e655a3285da6c01b
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
only media, calls and alarms seem fit
the rest are pretty much set and forget and don't need vol button granularity
Change-Id: I6ce6fa79df7b94ae84912945f6129048895067b2
Allows using the VPN's DNS instead of the set private DNS
Automatically restores the previous set mode
Change-Id: Ib7d91bf151ed593648357c1d7e4013d309e2d927
This is a squash of the following commits:
Author: Danny Baumann <dannybaumann@web.de>
Date: Tue Nov 11 13:14:07 2014 +0100
Add back increasing ring feature (2/3).
Change-Id: Iafc79a57651db327a100e0f1723b62f442b638be
Author: Danny Baumann <dannybaumann@web.de>
Date: Mon Nov 24 13:05:39 2014 +0100
Fix NPE.
When entering the notification prefs sub activity without the increasing
ring pref being visible and leaving it right away, onActivityStop()
threw an NPE because the handler wasn't yet constructed.
Change-Id: Ia4291d8ac3d1dbf76d432db7e0e973844163c4ae
Author: Danny Baumann <dannybaumann@web.de>
Date: Fri May 29 08:48:46 2015 +0200
Fix up increasing ring tone volume preview behaviour.
Change-Id: Ibe7fdf1ee7f0aa1c7c76052df69fa92e8b6a2ffd
Author: Keith Mok <kmok@cyngn.com>
Date: Tue Jul 12 09:45:45 2016 -0700
Settings: Always set ramp-up time value during bindView
onProgressChange is not always called if we set the
ramp up time to 5 sec (0 in seekbar value, since it is
the default value, no change).
Causing the text showing the ramp up time text value not
updated and display as empty when user enable/disable
increasing ring volume with ramp up time set to 5 sec.
FEIJ-1572
Change-Id: Id32d6b51aab05e80be59bc1912c4ae7c5d114ac5
Author: Zhao Wei Liew <zhaoweiliew@gmail.com>
Date: Wed, 18 Jan 2017 15:55:13 +0800
Move notif volume pref on top of increasing ring pref
Change Iafc79a57651db327a100e0f1723b62f442b638be added two
increasing ringtone-related preferences between the notification
volume preference and the ring volume preference.
However, the notification volume preference should be grouped
together with the media, alarm, and ring volume preferences.
Hence, move the notification volume preference back to where
it should be.
Change-Id: I138e6f78b6c231643d86746858e0cbdfcb0942eb
Author: Bruno Martins <bgcngm@gmail.com>
Date: Mon Dec 11 23:45:39 2017 +0000
Adapt increasing ring feature to O-MR1 and new Settings UI
* Make it depend on SettingsLib's version of Lifecycle and Mixin.
* Create a custom style for the IncreasingRingtonePreference
and match the new UI in Oreo Settings app.
Change-Id: I25462159fa39f5cdaddb1898c71f536572e900a4
Author: Bruno Martins <bgcngm@gmail.com>
Date: Fri Jan 14 17:56:29 2022 +0000
Adapt increasing ring feature to S and new Settings UI
Change-Id: Ib70f6f71f62e59c945d69ab9c23ca185fde4a4b0
Change-Id: I3f22c77504a5014f9dbd40909d760149143570fe