Commit Graph

48 Commits

Author SHA1 Message Date
Marko Man
36c33da733 Cherish:Add fixed PackageListAdapter
actually use OUR layout instead of the one in settings with happens to have the same name

Signed-off-by: xyyx <xyyx@mail.ru>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I21c6edbe6439982ae4b8756ba2c699f599f2094e
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-12-07 14:37:58 +07:00
Hưng Phan
b9f009f47d Revert "vendor: Add Slim Recents PackageListAdapter"
This reverts commit 7e67976c59.
2020-12-07 14:37:58 +07:00
Hưng Phan
ddd88c8f31 Revert "preferences: PackageListAdapter: really sync mInstalledPackages"
This reverts commit 86f075f743.
2020-12-07 14:37:57 +07:00
DennySPb
f58718e4ae Gaming mode: stop using masterswitch preference
have issues with layout on 11 and crashes settings

also comment dynamic switch for now

Change-Id: Id823786d1ca6a54151e91fc5f1b6b6a7cdebdbb6
Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-12-07 14:37:43 +07:00
Pranav Vashi
568bd02088 Prevent NPE in gaming mode settings
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DennySPB <dennyspb@gmail.com>
Change-Id: I64767668de59125a13650fb2483439143f0aabd2
Signed-off-by: DennySPB <dennyspb@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-12-07 12:43:34 +07:00
Lup Gabriel
7a5e86f2e5 GameMode: remove hwkeys toggle on non-hwkeys devices
Change-Id: I730ccd05c4fd2e00966201ba3ab0dfb07ede1a1b
Signed-off-by: DennySPB <dennyspb@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-12-07 12:43:19 +07:00
Pranav Vashi
c1e9a0df45 Cherish:Bring back Gaming mode [3/3]
Change-Id: I4ffb0bdf8453068eb049da4823fea6da33346446
Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-12-07 12:42:43 +07:00
kondors1995
d5de3f33af [SQUASH] Cherish: FOD icon picker [2/2]
Author: kondors1995 <normandija1945@gmail.com>
Date:   Fri Nov 27 12:40:12 2020 +0000

    convert to webp

    Change-Id: Ie2df0039158d5ed5cb9c5d7fe0045e2b74e0a500

commit 9425822e3c0da0255eeed94f9d691d7ae416201e
Author: AnierinB <anierinb@evolution-x.org>
Date:   Mon Feb 17 23:27:41 2020 +0000

    Cherish: Add fire_ice_ouroboros style FOD icon [2/2]

    Signed-off-by: AnierinB <anierinb@evolution-x.org>

commit e7e08fa488d54c9fe2a604d0bfa562483a12e5a0
Author: AnierinB <anierinb@evolution-x.org>
Date:   Sun Feb 9 02:30:43 2020 +0000

    Cherish: Add scratch style FOD icons [2/2]

    Co-authored-by: deadlyghost088 <raag.naidu@gmail.com>
    Co-authored-by: Joey Huab <joey@evolution-x.org>
    Signed-off-by: AnierinB <anierinb@evolution-x.org>
    Signed-off-by: Joey Huab <joey@evolution-x.org>

commit f1f6116c9f003738fb92c2669d30f7ba3936ab6d
Author: Joey Huab <team.evolutionx.rom@gmail.com>
Date:   Wed Jan 8 14:43:37 2020 +0800

    Cherish: Add Evo FOD icons [2/2]

    Co-authored-by: ecnivtwelve <ecnivtwelve@users.noreply.github.com>
    Co-authored-by: MartonDev <martondeveloper@gmail.com>
    Change-Id: I8b68b0e00149eae604694e7f3341616ccdaf6a14

commit de935762ae0040c624b30843e1554ebd8a47a926
Author: Stallix <team.evolutionx.rom@gmail.com>
Date:   Fri Jan 3 16:46:45 2020 +0000

    Cherish: Add more FOD icons [2/2]

    * Improve and re-write some codes
    * Use 3 columns for choosing the icons

    Change-Id: I43e48e8d0878bc9f5846ff81f4ad24228581709a

commit 1aed5e291cfa4736ce75f18fc939a407a6a5f4f5
Author: 00day0 <therandomuser11@gmail.com>
Date:   Mon Dec 16 21:46:12 2019 +0100

    FOD icon picker [2/2]

    * Add a footer to explain how users can add their own icons

    Co-authored-by: Stallix <thestallix@gmail.com>
    Signed-off-by: DennySPB <dennyspb@gmail.com>
    Change-Id: I38e1e79dc3bff68fef2f05cac23c622f413a96b8
    Signed-off-by: DennySPB <dennyspb@gmail.com>

Co-authored-by: Stallix <joey@evolution-x.org>
Change-Id: I5af323860a3036b25a79befdc8f593f2f9184211
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-11-30 10:40:08 +07:00
SuperDroidBond
a0bf7cbee1 Cherish:LS Weather Temp & City Fonts [2/2]
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-11-22 18:32:05 +07:00
Meticulus
7532dceec2 Cherish:Live Volume Steps [3/3]
Change-Id: I1e4ced6a7b7c963419fe1656e25b76f596a61959
Signed-off-by: Jason Edson <jaysonedson@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-10-28 22:31:50 +07:00
Ali B
fd8b4b59fa Cherish:Add keyguard weather style (2/2)
DennySPb: use listpreference

Change-Id: I10c965a4a50d5c59f27c5019c3e0f1081734bf52
Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-10-28 15:42:02 +07:00
maxwen
7287e081fc Cherish:add back weather parts [3/3]
Change-Id: Ife851b6769ea8e85c32653bb3104ebb0ab2527c1
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-10-28 15:37:59 +07:00
xyyx
c58e1987b5 hw keys: Fix custom app selection dialog
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-10-03 15:36:23 +07:00
bigrushdog
2a1c9debc8 Cherish:HW Keys customization support [1/2]
Based on DUI

jhenrique09 edits: make it DUI independent

Original commit message:

Same robust action library as used on software navigation. Supports
single tap, double tap, and long press. As a precautionary measure,
single tap back and single tap home are fixed and can not be changed.
Camera button actions are not supported at this time. We will bring
in wake key support at a later time.

Also includes:

DUI: Initial checkin for Oreo [4/7]
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-10-03 15:36:13 +07:00
xyyx
d3a510773e Buttons: Add buttons brightness and button backlight timeout options 2020-10-03 14:09:00 +07:00
Hưng Phan
a526604f98 Cherish:Remove ColorSelectPreference 2020-10-02 09:07:54 +07:00
Hưng Phan
840c1cf2c0 Cherish:Clean slimrecents from Android 10 2020-10-02 09:07:54 +07:00
Hưng Phan
e6308bab52 Cherish:Intitial for Android 11
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-10-01 00:46:50 +07:00
bigrushdog
f9657adfb8 [SQUASH]DerpQuest: Add Battery Bar [2/2]
AquariOS:
    Fixed color preferences to stick - @calebcabob

I'd like to thank and show respect to the following contributors for this
fantastic feature

Lokesh Chamane <lokesh.chamane@pac-rom.com>
SpiritCroc <spiritcroc@gmail.com>
westcripp <korukaltan@gmail.com>

commit fe5fa0cb0b74348d5e0e8172b17ab0f2d272dbf3
Author: Lokesh Chamane <lokesh.chamane@pac-rom.com>
Date:   Thu Aug 4 23:37:17 2016 -0600

    BatteryBar: Gradient Color [2/2]

    Change-Id: If85baf2e724f9c6cdef868af323be039b47e49ad
    Signed-off-by: mydongistiny <jaysonedson@gmail.com>

commit 0f046e9887f547ff130a925d02d75d0a74b369f4
Author: SpiritCroc <spiritcroc@gmail.com>
Date:   Mon May 2 02:52:00 2016 -0700

    Battery bar enhancements [2/2]

    Add color settings for charging & low battery
    Add reversed alignment setting

    Change-Id: I51f7e0499971ed344d8faa6e63d4f89558946cb7
    Signed-off-by: mydongistiny <jaysonedson@gmail.com>

commit be722a66ed4243831c48f45997a4cf1c442bc335
Author: westcripp <korukaltan@gmail.com>
Date:   Sat Jan 10 04:14:45 2015 +0200

    Settings: Add back batterybar [2/2]

    Change-Id: I67b0a971fe9f0b6f5443d8ca7336d5e28e86bccd
    Signed-off-by: mydongistiny <jaysonedson@gmail.com>

Change-Id: I4ad46c0e294b8fcf443926b5bb6d11930d981f91

@idoybh (DerpFest) edits:
    * Improved and simplified the code
    * Converted to a MasterSwitchPreference
    * Added to settings search index

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2020-09-06 21:22:21 +07:00
Josh Fox (XlxFoXxlX)
e02805e3aa Cherish: Add ColorSelectPreference
pulled from Omnilib repo from omnirom for history/authors check
https://github.com/omnirom/android_packages_apps_OmniLib/commits/android-10

Change-Id: I5999c551ce0273f5c3b25ff45179a10a9969bbe8
2020-09-06 21:20:28 +07:00
SpiritCroc
0d3f02daee Customseekbar: add missing PreferenceDataStore calls
Change-Id: I265f23f32c8ad62ecd5576ba70af85ae49643323
2020-09-06 21:20:17 +07:00
Stallix
bdde870e34 Cherish: Add more FOD icons [2/2]
* Improve and re-write some codes
* Use 3 columns for choosing the icons
2020-05-28 08:20:53 +07:00
00day0
814c31b7b0 Cherish: FOD icon picker [2/2]
* Adapt for CherishOS support
* Add a footer to explain how users can add their own icons
2020-05-28 08:20:53 +07:00
ezio84
d0b86c6d5e Cherish: Wired/BT headset: make ringtone audio focus customizable [2/2]
Import GlobalSettingListPreference from https://github.com/crdroidandroid/android_packages_apps_crDroidSettings/blob/10.0/src/com/crdroid/settings/preferences/GlobalSettingListPreference.java
2020-05-06 21:47:01 +07:00
Victor Lapin
86f075f743 preferences: PackageListAdapter: really sync mInstalledPackages
synchronized works as expected on final objects

Change-Id: I46897cb9bea214b538841a071bc4976d036f4f31
2020-04-28 17:26:23 +07:00
ezio84
7e67976c59 vendor: Add Slim Recents PackageListAdapter
thanks cm guys!

Change-Id: I90a775a79e1aee0dd945f73da97c53c6a985aefd
2020-04-28 17:26:13 +07:00
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
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
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
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
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