Commit Graph

249 Commits

Author SHA1 Message Date
SpiritCroc
67cc377d58 Cherish: slimRecents: Changes for android 10
Change-Id: I6b1adf3e0b6bbfe3e3b36dff9e99d0d5439b5e1e
Signed-off-by: rohan <purohit.rohan@gmail.com>
2020-04-28 17:25:57 +07:00
SpiritCroc
a8ff719262 Slim recents [2/3]
@SKULSHADY: Cleanup, fixes and adapt for SettingsPreferenceFragment
@rohanpurohit: bringup to 10

Change-Id: I7fa5703534c9eb76a555db9a6d3349cc2b6a2b2d
Signed-off-by: rohan <purohit.rohan@gmail.com>
2020-04-28 17:25:49 +07:00
Lars Greiss
316b875415 Add back DSLV / ActionListViewSettings
Contains updates by Griffin Millender <griffinn.millender@gmail.com> and
the SlimROMs team

AICPfy:
- make it play better with themes
- bring it to Oreo
- Update SettingsActivity to forward extras from PreferenceScreen to the new fragment
  (allows using DSLV from xml)

Change-Id: I7514cdfa3603ed6e24deeb251875a716a52a02b1
2020-04-28 17:25:22 +07:00
00day0
7a81100ef2 Cherish: Recognizing fingerprint animation [2/2] 2020-04-28 17:25:11 +07:00
Alex
9d4cffdecb Cherish: Notch friendly carrier label [2/2] 2020-04-24 15:45:16 +00:00
Alex
f75ead2bb6 Cherish: Carrier label: Ensure the dialog matches other dialogs
Change-Id: I172fc3cba036dded75585ba444272855b4a912b9
2020-04-24 15:45:16 +00:00
Alex
e994676cd3 Cherish: Set a text length on the carrier label
Up til now this has been gone unnoticed. Without a text limit the user
could very easily blow up the statusbar to the point that is not usable.

Change-Id: I2813af9e12c6d29e020669e0626faec8422fedbe
2020-04-24 15:44:52 +00:00
beanstown106
fcfa74859b Cherish: Custom Carrier Label & Carrier Label Placement [2/2]
Credit/Thanks to @Altaf-Mahdi @beanstown106 and @martincz

Change-Id: Ia7b29f85d7a1286bd15dc4427727a683e133ab3f
2020-04-21 00:26:52 +07:00
Kshitij Gupta
ae423381b9 Cherish:Custom Rounded Corner and Padding preferences [2/2]
Extensions: Add Runtime Rounded Corner preferences

Change-Id: I6dd7b0c3b8fce13c738f2239ba5504b14d1cc568
Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>
Signed-off-by: Shubham Singh <coolsks94@gmail.com>

RoundCornerPreferences: Use frameworks default values

Change-Id: Ib5ad571bec311b75bc138bae238e5ca8ee005358
Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>

RoundCornerPreferences: Evaluate framework values correctly

Change-Id: I81d9830d4cfc76a568d6862c344c1f44666e3bc9
Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>

Allow using framework values for rounded corners [2/2]

Change-Id: I04ac74f7ea2062dfe7c3a783bdb08b65cb774d34
Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>

RoundCorners: Allow radius to reach 60

- Some devices have almost 50. Allow configuring a bit over this.

Extensions: corners: Update seekbars when framework values toggled

- Clean up and refactor some older code
- Add new method to restore corner values to the seekbar prefs

Change-Id: Ib6869208c8cc0eeaf30acfe2126c1af52a21b01a
Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>
Signed-off-by: Shubham Singh <coolsks94@gmail.com>

Change-Id: I3cd485c178d74f507e78c9ad173a73d1650a7561
Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>
Signed-off-by: Shubham Singh <coolsks94@gmail.com>
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Signed-off-by: blinoff82 <blinov.in@gmail.com>
2020-04-19 22:27:14 +07:00
RakeshBatra
a8fcf1f3e7 Cherish:Add MaterialOcean and DarkGrey System Theme [3/3] 2020-04-19 00:08:31 +07:00
SuperDroidBond
b6057bf285 Cherish:Introduce RGB Gradient Picker [2/2] 2020-04-12 17:07:41 +07:00
AgentFabulous
22b278cc53 Cherish: Introduce RGB Accenter [2/2] 2020-04-11 15:40:45 +07:00
SuperDroidBond
9bb8517d45 Cherish:Add 3 New Themes - ChocoX & BakedGreen and DU's PitchBlack [3/3]
And fix all bugs in ThemeSettings
2020-04-11 15:40:40 +07:00
Mazda--
362adb0b25 Cherish: Add DU themes [3/3]
SDB: Adapt for AOSP Settings

Special Thanks to @imjyotiraditya for the help
2020-04-10 10:29:45 +07:00
ezio84
a18b40d5a2 Disable useless alphaslider for battery led customization 2020-04-02 15:06:00 +07:00
ezio84
8674143289 Battery light customization [2/2] 2020-04-02 15:05:52 +07:00
SuperDroidBond
ccc2b7f0cf Cherish: Add more charging animation for users [2/3] 2020-04-02 12:31:59 +07:00
Nauval Rizky
59ea268602 Cherish: Introduce Adjustable Blur Intensity [2/2]
Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
2020-04-02 08:51:36 +07:00
idoybh
590abebbef Cherish: Allow controlling QS blur alpha [2/2] 2020-04-02 08:51:28 +07:00
beanstown106
5ebf6e28bc Cherish:Fingerprint authentication vibration [2/2] 2020-03-31 10:18:11 +07:00
ezio84
d749919f35 Cherish:Status network traffic [2/2]
arrow-edits:
 - migrate to androidx

Change-Id: I1769659ce44be6be0187757627b82a8dabbc743d
2020-03-30 17:22:24 +07:00
spezi77
a895121e29 Cherish: Add battery styles and customizations for Android 10 [2/2]
Allows the user to tune:
- battery styles
- battery percentage
- battery charging text
2020-03-30 17:10:19 +07:00
TheStrix
3469e1146b Cherish: Implement battery styles (2/2)
spezi77:
- Adapted to our battery styles
- Note to myself: In Android10 battery percentage has become a global setting
2020-03-30 17:10:19 +07:00
yank555-lu
2e2089d6ee Cherish: date right/left position [2/2] 2020-03-30 17:10:19 +07:00
Lars Greiss
63157ec6d9 Cherish: Statusbar clock date customization (2/2) 2020-03-30 17:10:13 +07:00
beanstown106
868309ed94 Cherish: Incall vibration option [3/3]
* this works with google and aosp dialer :)

Adapted to PE

Change-Id: Ia3a239ef4c3c5e9ad6e1efae5def7e06f333cbfe
2020-03-25 15:46:32 +00:00
Pranav Vashi
fcf50d92ad support: Extend CustomSeekbarPreference
spezi77: Remove SeekBarPreferenceCham

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: spezi77 <spezi7713@gmx.net>
2020-03-23 17:31:36 +07:00
Anushek Prasal
fdc54b320d support: Extend MasterSwitchPreference 2020-03-23 17:31:36 +07:00
Anushek Prasal
dd1366136f support: MasterSwitchPreference: Fix settings not applying
Signed-off-by: spezi77 <spezi7713@gmx.net>
2020-03-23 17:31:36 +07:00
SpiritCroc
a07b60e8de support: MasterSwitchPreference: isChecked doesn't rely on existence of switch
When checking for isChecked in e.g. a preferenceFragment, we want to
know the setting value, independent of whether the preference already
has been inflated or not

Change-Id: Ie3e777388805d329fea6f56ef306a4c941993938
Signed-off-by: spezi77 <spezi7713@gmx.net>
2020-03-23 17:31:36 +07:00
SpiritCroc
6636e195ec support: Add SystemSettingsMasterSwitchPreference
- Import MasterSwitchPreference from Settings(Lib)
- Add System setting variant + fix initial values
- Use icon_frame as ic in layout instead of icon_container to fix hiding
  icon
- Allow launching fragments with the android:fragment extra same as
  currently possible for PreferenceScreens
- Add possibility to reload value when it might have changed
  (best to call onResume when the value can also be changed from the
  sub preference screen)

@ZeNiXxX: Adapt to AndroidX

Original commit history for TwoTargetPreference from
frameworks/base/packages/SettingsLib:

commit 8a01abf592762c75bb92a9e1787227c44f1f4a8e
Author: Fan Zhang <zhfan@google.com>

    Adjust icon width to match the width with framework

commit 035ff93430b71ef856f299c9f676f8d340403e16
Author: Fan Zhang <zhfan@google.com>

    Move two target preference layout from settings to lib

Original commit history for MasterSwitchPreference.java:

commit e2ad415fdba79b27dfd2c98a2b01d56db9257c71
Author: Doris Ling <dling@google.com>

    Add content description to the master switch toggle button.

commit c68ae0b9fdd5f5a149364d0af7e8a9497a91adfd
Author: Julia Reynolds <juliacr@google.com>

    Channel settings updates

commit aa805e70ed0c7f4eaa66b6e6a0b79bf1b3b9d16d
Author: Doris Ling <dling@google.com>

    Allow settings preference title to span over multiple lines.

commit fe292515d88e803057a5b6077f67ce284b595d7a
Author: Fan Zhang <zhfan@google.com>

    Refactor the layout for MasterSwitch to a 2 target pref

commit 6467d2027e8fefd646af03c08d51d91386843463
Author: Doris Ling <dling@google.com>

    Extends the touch area for the switch in Master Switch preference.

commit 762a733afa26b3d49edfae81536c9fcbe9384483
Author: Julia Reynolds <juliacr@google.com>

    Allow switch preferences to span lines.

commit 56199e94876d4bbd89fb0272156702a321dd681e
Author: Fan Zhang <zhfan@google.com>

    Misc fix on network & internet screen for developer preview

commit c4c9f4d50eec659eb50f8ed671c27d8c6ef0c924
Author: Doris Ling <dling@google.com>

    Update Network & internet->Wi-Fi to use MasterSwitchPreference.

commit 1432cb852972daedd6c2fde78abb769b722fc47d
Author: Doris Ling <dling@google.com>

    Add new preference class MasterSwitchPreference.

Original commit history for preference_widget_master_switch.xml:

commit fe292515d88e803057a5b6077f67ce284b595d7a
Author: Fan Zhang <zhfan@google.com>

    Refactor the layout for MasterSwitch to a 2 target pref

commit 6467d2027e8fefd646af03c08d51d91386843463
Author: Doris Ling <dling@google.com>

    Extends the touch area for the switch in Master Switch preference.

commit 14c2050330b36a00b708049a691d4e1c39700586
Merge: 249077a0cd 56199e9487
Author: TreeHugger Robot <treehugger-gerrit@google.com>

    Merge "Misc fix on network & internet screen for developer preview"

commit 56199e94876d4bbd89fb0272156702a321dd681e
Author: Fan Zhang <zhfan@google.com>

    Misc fix on network & internet screen for developer preview

commit 4f1eca05be15b9a30757434ce6c11abe5e6db381
Author: Doris Ling <dling@google.com>

    Update the color for the master switch divider.

commit 1432cb852972daedd6c2fde78abb769b722fc47d
Author: Doris Ling <dling@google.com>

    Add new preference class MasterSwitchPreference.

Change-Id: I7ee76f4626223ec3c66ae7d10ebb87c88c5a8175
Signed-off-by: spezi77 <spezi7713@gmx.net>
2020-03-23 17:31:36 +07:00
SpiritCroc
baff4b6ed0 Add seekbar and list settings preferences
Taken from AICP
2020-03-23 17:31:36 +07:00
SpiritCroc
cd35b45d96 Add switch preferences that hold system settings 2020-03-23 17:31:36 +07:00
Hưng Phan
ba9e20e869 Fix derp 2020-03-23 17:31:36 +07:00
xyyx
8a61ea170d Cherish: Move to androidx 2019-10-03 19:52:32 +07:00
xyyx
369891b075 CustomSeekBar: Fix NPE
08-23 20:07:44.650 31111 31111 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
08-23 20:07:44.650 31111 31111 E AndroidRuntime: 	at com.nitrogen.settings.preferences.CustomSeekBarPreference.setDefaultValue(CustomSeekBarPreference.java:240)
2019-10-03 19:52:04 +07:00
xyyx
745b46dffe Cherish: Add Oneplus3Parts to main menu 2019-10-03 19:51:32 +07:00
xyyx
f4e35af95b CustomSeekBar: Fix disabling when create
before: https://imgur.com/a/jtNip
after: https://imgur.com/a/Q1rJH
2019-10-03 19:47:09 +07:00
ezio84
243dffeb0e New CustomSeekBar: allow to translate "Default" value string
Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:47:01 +07:00
beanstown106
a4dba2147e Add utils 2019-10-03 19:46:50 +07:00
ezio84
b9fd5ed58a Fix SecureSettingsSwitchPref and Global derp
Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:45:41 +07:00
ezio84
dbbb73f0ae Colorpicker and customseekbar: add method to set default values
also be sure default values is not greater than max value
2019-10-03 19:45:22 +07:00
ezio84
8dc8247882 New custom seekbar: more improvements
fix value txt being cutted when too long

allow to set a custom string to show instead of the
numeric value when value is defaultValue
2019-10-03 19:42:11 +07:00
ezio84
bbd8f269b5 New fresh look for CustomSeekbar
Oreo prefs style

thanks @Mazda-- for suggestion on how to remove the top divider

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:42:00 +07:00
ezio84
64483f2bd5 CustomSeekBar: fix progressbar glitch with custom min-max values
when CustomSeekBar is called, it does:
mSeekBar.setMax(mMax - mMin);
assuming mMin=0 and mMax=100 if they are not set with settings:min or max
through the related menu xml.
So if we set one of those values in the related menu java class with the
available public voids (setMax(value) and setMin(value)) the seekbar doesn't
get the new min and max thus the user can't slide it to the max position.

To reply:
- set settings:max (or android:max according to your customseekbar implementation)
to the wanted value, e.g. 255;
- set the min value through your menu java class with CustomSeekBarPreference.setMin(value);
- try to move the progressbar thumb to the max position, it won't reach it.

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:40:14 +07:00
dwitherell
005717276e Fix seekbar attribute grabbing *also remove from attrs as we have always used android: for max
Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:39:55 +07:00
d34d
88870041dc Add CustomSeekBarPreference
Change-Id: I374ceb023a418f72778539d1c227ee987b3978a1

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 12:28:43 +07:00
Danny Baumann
dd31238803 Add back a helper pref that holds a system setting.
nitrogen edits : update for O and remove never used checkbox prefs

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 12:26:24 +07:00
hungphan2001
7d9b211eb1 Init Cherih 2019-10-03 12:21:20 +07:00