diff options
author | Chris Crump <chris@cypheros.co> | 2019-09-30 16:47:42 -0400 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-05-07 00:20:58 +0800 |
commit | 0e4ee09469f6452b576cea4e0ce8f57529d6c2d4 (patch) | |
tree | 717a3145eddb9f028da8bef91d5343cbfb128d09 /core | |
parent | b56b36abbdc4f34a924d106c0b954efb5d52bc3d (diff) |
SystemUI: Introduce user interface for Alert Sliders
Ported from OxygenOS and reworked for our alert slider
implementation. We target AudioManager instead of Zen,
icons are also the same as aosp and the dialog uses the
material theme as well as support for our themes.
To use, the alert slider config must be enabled. By default,
the dialog shows on the left side. To move it to the right
side, set the location config to 1.
also squashed with the following changes:
Author: Anushek Prasal <anushekprasal@gmail.com>
Date: Tue Nov 12 15:41:19 2019 +0530
[aospa][quartz] SystemUI: Improve alert slider dialog
- Convert px to dip
- Modify the dialog to match toast
- Fix positioning for OP7 Pro slider
- Remove unused dimens and drawables
Edit: set position values to 0 for neutrality. They should
be adapted by overriding in each device tree.
Change-Id: I0dfb705843f52cdea470993d05a7bdedc10750f4
Author: Pranav Vashi <neobuddy89@gmail.com>
Date: Sun Feb 7 02:08:38 2021 +0530
[crdroid][11.0] AlertSlider: Prevent crash in case of incomplete broadcast
* In intent extra EXTRA_SLIDER_POSITION_VALUE is not received and slider is changed,
SystemUI will crash "No resource found". This patch should prevent such ice-cold havoc.
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ifc21327f785959db2e7cb0d03e07c0b061dfd569
Author: idoybh <idoybh2@gmail.com>
Date: Sun Aug 8 15:49:16 2021 +0200
[crdroid][11.0] AlertSlider: check for existing dialog before creating new
Change-Id: I582586e54d25b668c5e51fcc92942b37bda4a014
Author: alk3pInjection <webmaster@raspii.tech>
Date: Sun Sep 5 22:46:40 2021 +0800
AlertSlider: Fix bad layout under 180° rotation
* silly but it works
Change-Id: I0c32980b9380cd5fc8b8204440ea93d73c6aabc4
Author: LibXZR <i@xzr.moe>
Date: Fri Apr 8 22:56:39 2022 +0800
TriStateUi: Adapt new status bar height api
com.android.internal.R.dimen.status_bar_height is no longer
returning correct value due to api change.
Change-Id: I5973de93ab237764fe5ea4baa8a2fd3a9598d2d0
Signed-off-by: LibXZR <i@xzr.moe>
Change-Id: Ie1954a44cc5242c95a731abd7404379ea638fe70
Diffstat (limited to 'core')
-rw-r--r-- | core/res/res/values/ice_config.xml | 8 | ||||
-rw-r--r-- | core/res/res/values/ice_symbols.xml | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/core/res/res/values/ice_config.xml b/core/res/res/values/ice_config.xml index ecf14aeb4fa3..b984a8a9f013 100644 --- a/core/res/res/values/ice_config.xml +++ b/core/res/res/values/ice_config.xml @@ -45,4 +45,12 @@ <!-- Expected value from fast charging status file --> <string name="config_oemFastChargerStatusValue" translatable="false">1</string> + + <!-- Whether device has an alert slider --> + <bool name="config_hasAlertSlider" translatable="false">false</bool> + + <!-- The location of the device's alert slider: + 0: Left side + 1: Right side --> + <integer name="config_alertSliderLocation">0</integer> </resources> diff --git a/core/res/res/values/ice_symbols.xml b/core/res/res/values/ice_symbols.xml index 4a17132148c1..51335f3f69e9 100644 --- a/core/res/res/values/ice_symbols.xml +++ b/core/res/res/values/ice_symbols.xml @@ -31,4 +31,8 @@ <!-- Expected value from fast charging status file --> <java-symbol type="string" name="config_oemFastChargerStatusValue" /> + + <!-- Alert Slider --> + <java-symbol type="bool" name="config_hasAlertSlider" /> + <java-symbol type="integer" name="config_alertSliderLocation" /> </resources> |