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>
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
frap129: Reworked for Pie, set default scale to 0.5f, and improved
the preference summaries so they match AOSP while keeping translations.
Change-Id: I29d89e532d07a325f6e568b21e4da4ce7e5761ac
Signed-off-by: Joe Maples <joe@frap129.org>
[jaysonedson: Fix fc when not using English and preference]
Signed-off-by: Jason Edson <jaysonedson@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Enforcing windowBackground on places they shouldn't be causes issues when applying background there.
Or another kind of issues, like full transparency on clear themes, or white bg on settings home categories.
Credits goes to Genkzsz11 and the whole Corvus-ROM team for finding some of the root issues on this commit:
2b595f3d56
Change-Id: Iacd5b2e369ba9089f5522ff637427b31dcdd69b7
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Android security 16.0.0 release 3
* tag 'android-security-16.0.0_r3':
Import translations. DO NOT MERGE ANYWHERE
Backport BT pairing dialog changes
[nfc] Fix string injection in default payment app selector
Add check to prevent privilege escalation from trampoline added in change Ie469c47005afb941f5646a2f790736362c23c697.
Hide sensistive content from locked profiles
Prevent SettingsSliceProvider from accessing unused packages
Ignore face settings extras when called by an external package.
startActivityForResult with earlier new Intent
Hide notification content in history
Use correct API to get calling package name in CredentialStorage
Drop PendingIntent extras from external packages during enrollment.
Do not enable the Content Protection toggle for non-admin users.
Add ComponentName explicitly to make sure arbitary intents aren't launched from Settings.
AppRestrictions - use vetted component
Add battery health tip
Change-Id: Ifbcbfcc5e95e3b69085c9c7f795914ec21b4d0a9
This is a combination of two commits against b/409868905, merged for
backport convenience. It updates the string and button style for the BT
pairing dialog.
Bug: 236134583
Bug: 236134775
Test: local tested
Flag: EXEMPT minor style update
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:22378fd5a1bb2ca8d63f5df4e47c0af218c66a57
Merged-In: Icd9f509b5363b3ec3900738e21486e54d4e66e4b
Change-Id: Icd9f509b5363b3ec3900738e21486e54d4e66e4b
This is based on the following changes, adapted to Android 12
considering the fact that AOSP now supports FOD as well as
fingerprint sensors embedded in the power button:
Author: d34d <clark@cyngn.com>
Date: 2016-06-23 11:21:45 -0700
fingerprint: Allow devices to configure sensor location
The text for enrolling a fingerprint always assumes the sensor is
located on the back. This patch adds a config integer that defines
where the sensor is located on the device.
0 = back
1 = front
2 = left side
3 = right side
This patch also adds a new drawable that shows the front of the device
when applicable.
Change-Id: Ia8f5f8ff4ba4d13d35aed3052f60ff665dd4f294
TICKET: CYNGNOS-3089
Author: Paul Keith <javelinanddart@gmail.com>
Date: 2018-01-26 22:23:03 +0100
FingerprintEnrollFindSensor: Don't overlay front for side sensors
* Both the base image and the base image + overlay are equally nonsense
for devices with a side fingerprint scanner, but for those that overlay
a custom fingerprint enrollment graphic, this image overlay wreaks havoc
* Only set this overlay to be visible if the sensor is on the front, to
allow devices with side sensors to only overlay the base image
Change-Id: I7cbcea4830d4526cf9f7d139e7f84f21117fa9c4
Author: Michael W <baddaemon87@gmail.com>
Date: Thu Jan 17 21:44:28 2019 +0100
Settings: Make find fingerprint look great again
* The current logic places the animation based on the size of
the whole overlay instead of the image, which is a fixed-size png
* Get the size of the image instead and place the dot relative to it
* Also use "wrap_content" and add a padding to the top so the
distance to the text is a fixed thing, not depending on how
much space relative to the wanted space it actually takes
* Preview: https://imgur.com/a/XanJ2aP
Change-Id: I2bd08cee1abd1c6bad78ca1efc2189e573ded3cc
Author: LuK1337 <priv.luk@gmail.com>
Date: Sat Dec 15 17:11:41 2018 +0100
fingerprint: Remove unnecessary spacing in enroll layout
* This makes it look ugly on 480 dpi devices.
Change-Id: Ia1bbd443063a125878dddd12e5c6a816d289fb82
Author: Bruno Martins <bgcngm@gmail.com>
Date: Thu Mar 17 10:30:41 2022 +0000
FingerprintEnrollEnrolling: Set proper dialog message when user touches fp icon
Change-Id: Iafd86e636b0c54bbddcf26d153cc671259391259
Author: Michael Bestas <mkbestas@lineageos.org>
Date: Tue Dec 6 20:40:45 2022 +0200
Use AOSP string for side fps enrollment
Change-Id: I9267b6a75716f45044f4d7a51650ca4f928b104e
Author: Bruno Martins <bgcngm@gmail.com>
Date: Tue Apr 18 16:16:34 2023 +0100
FingerprintEnroll: Add config for dedicated side mounted fps
Google likes to assume that there only exists devices with
fingerprint sensor embedded in the power button, but that's
not always true. Since specific enrollment messages were added
just for those devices, we need to address our own usecase.
Change-Id: I56a7d7fe0374fe5a1fce5e24bdbb265cb5edc246
Change-Id: If372ef50c4a719e89a4e80cc20e3eb445af61bc6
- Works around issue where Setup and Settings libraries are clashing
when applying their new expressive themes at the same time.
- Updates illustration prefs to match parent width. Otherwise this new
padding workaround causes the images to get clipped.
Fix: 390545391
Bug: 400479388
Test: manual only; see screenshots
Flag: EXEMPT using custom flagging from Setup ThemeHelper lib
Change-Id: Ie00cdf3e68a2ff7c40aedd04eb5bed0adaa9cf84
Enhance the visibility and discoverability of ambient volume control
icons by adding backgrounds.
Flag: EXEMPT bugfix
Bug: 398962101
Test: manual check the result and screenshots attached on bug
Change-Id: Ice467191235df63f258bbca4e085fbf8a7f3c555
- Keep the Save button enabled at all times
- Show "*required" or "The password is invalid" to remind the user
Bug: 386897596
Flag: EXEMPT bugfix
Test: Manual testing
atest WifiConfigControllerTest
Change-Id: I442d2f958efd85f3c92309d0bed7cd3aa9ec9876