Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge beta into stable #619

Merged
merged 437 commits into from
Sep 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
437 commits
Select commit Hold shift + click to select a range
30f202f
Depth Wallpaper: Reapply foreground if drawable is null
Mahmud0808 Aug 17, 2024
4ffe501
WeatherScheduler: use own TAG
DHD2280 Aug 17, 2024
f45d38a
XposedLockscreenWeather: schedule new updates on enabled & on update …
DHD2280 Aug 17, 2024
5fbdc7a
OpenMeteoProvider: improve getting condition codes to match our strings
DHD2280 Aug 17, 2024
3463d8a
EditTextWidget: handle empty summary
DHD2280 Aug 17, 2024
dea2de7
Weather: Added OpenWeatherMap Provider
DHD2280 Aug 17, 2024
5988153
Refactor and add OpenWeatherMap weather provider
Mahmud0808 Aug 17, 2024
39bea85
Merge pull request #566 from DHD2280/additions16
Mahmud0808 Aug 17, 2024
eeeedcb
Lockscreen Clock: Small improvement for clock style 19
Mahmud0808 Aug 17, 2024
49a9cc3
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Aug 17, 2024
37e331d
Lockscreen Clock: Fix battery progressbar tint for clock style 19
Mahmud0808 Aug 17, 2024
ad76050
New Crowdin translations by GitHub Action
crowdin-bot Aug 18, 2024
f64d0f0
WeatherWork: return null location when using custom location
DHD2280 Aug 18, 2024
0e42820
Merge pull request #568 from DHD2280/additions16
DHD2280 Aug 18, 2024
7fa0323
Merge pull request #567 from Mahmud0808/beta-localization
Mahmud0808 Aug 18, 2024
606ac2e
Status Bar: Add colored notification icon (Closes #570)
Mahmud0808 Aug 19, 2024
5569b77
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Aug 19, 2024
9d466cb
BottomSheetWidget: setSelectedIndex - return if we haven't any arrayR…
DHD2280 Aug 20, 2024
9054a27
More proguard rules
DHD2280 Aug 20, 2024
08edab3
Removed useless logs & added clear prefs so we can clear weather pref…
DHD2280 Aug 20, 2024
8555334
CurrentWeatherView: remove useless stuff, no need to disable updates …
DHD2280 Aug 20, 2024
bf8796f
XposedLockscreenWeather: misc fixes
DHD2280 Aug 20, 2024
dacf33c
Clear Weather Prefs when clearing other preferences
DHD2280 Aug 20, 2024
89f430b
Depth Wallpaper: Move unzoom option from experimental features (Close…
Mahmud0808 Aug 21, 2024
7334bcd
Update proguard-rules.pro
Mahmud0808 Aug 21, 2024
3daea29
Merge pull request #574 from DHD2280/additions17
Mahmud0808 Aug 21, 2024
a67c9a8
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Aug 21, 2024
cb361f0
Refactor weather view directory
Mahmud0808 Aug 21, 2024
1ddcecd
Refactor weather package
Mahmud0808 Aug 21, 2024
43a9210
Initial commit for Lockscreen Widgets
DHD2280 Aug 22, 2024
0399a5c
Lockscreen Widgets: show only big widgets on stock bug clock
DHD2280 Aug 23, 2024
ca1a8fc
Add Widgets icon in Xposed Menu Fragment
DHD2280 Aug 23, 2024
823ba84
Load Widgets before Weather for positioning
DHD2280 Aug 23, 2024
e1ac79d
WeatherConfig: weather enabled also when there is a weather widget
DHD2280 Aug 23, 2024
1e6d4a6
Add Hotspot Widget
DHD2280 Aug 23, 2024
1c9380b
Add Weather Settings into Lockscreen Widgets page
DHD2280 Aug 23, 2024
9d49a2e
Send Intent for Widgets positioning when Weather enabled
DHD2280 Aug 23, 2024
b89a055
ControllersProvider: get also Hotspot Tile for toggling hotspot
DHD2280 Aug 23, 2024
b897b4f
Add some titles
DHD2280 Aug 23, 2024
ff384f1
LockscreenWidgetsView: misc improvements
DHD2280 Aug 23, 2024
c625798
ControllersProvider: clean up
DHD2280 Aug 25, 2024
f6a679d
LockscreenWidgets: if custom clock no care about large or small clock
DHD2280 Aug 25, 2024
bb4e1cb
weather settings action
DHD2280 Aug 25, 2024
e706cc8
weather settings action
DHD2280 Aug 25, 2024
fdd23bc
LockscreenWidgetsView:
DHD2280 Aug 25, 2024
20d416f
LockscreenWidgetsView: our own icons for ringer
DHD2280 Aug 25, 2024
780e4bb
Change Misc title
DHD2280 Aug 25, 2024
d0b6eac
ControllersProvider: start only if widgets enabled
DHD2280 Aug 25, 2024
301bf3f
Resize ringer icons
DHD2280 Aug 25, 2024
d731411
LockscreenWidgets: added bottom margin
DHD2280 Aug 25, 2024
5c0dc1d
WeatherSettings: weather icon pack
DHD2280 Aug 25, 2024
e39a0e2
Handle bluetooth settings for A<=A13
DHD2280 Aug 25, 2024
ee0ea8c
Added bottom padding for device widget
DHD2280 Aug 25, 2024
6b3e4b2
LockscreenWidgetsView: change camera icon
DHD2280 Aug 25, 2024
efcffeb
Merge pull request #580 from DHD2280/additions18
Mahmud0808 Aug 25, 2024
4cb54a5
Covert xposed menu to preference fragment (#584)
Mahmud0808 Aug 27, 2024
0448bea
Fix clock styles preference mismatch
Mahmud0808 Aug 27, 2024
7690fd8
Add support for QS tile styles for custom roms with pre-available styles
Mahmud0808 Aug 27, 2024
5367d03
Set OpenMeteo as default weather provider
Mahmud0808 Aug 27, 2024
a5e83ac
Avoid holding activity in companion object (potential memory leak!)
Mahmud0808 Aug 27, 2024
4d0799a
Remove duplicated clear prefs method
Mahmud0808 Aug 27, 2024
0cdb029
On long press do not open xposed only mode if overlays available
Mahmud0808 Aug 27, 2024
02766d5
Fix weather background key
DHD2280 Aug 27, 2024
0c18a84
Fix weather icon pack
DHD2280 Aug 27, 2024
2e9651b
Kotlin property access syntax
DHD2280 Aug 27, 2024
a30e06d
Merge pull request #585 from DHD2280/additions19
DHD2280 Aug 27, 2024
f18dd4e
Removed useless log
DHD2280 Aug 27, 2024
d43f4d4
Weather center key
DHD2280 Aug 27, 2024
515e52f
Merge pull request #586 from DHD2280/additions19
DHD2280 Aug 27, 2024
7e7f026
LockscreenWeather: weather style pref
DHD2280 Aug 28, 2024
d486f9d
Merge pull request #588 from DHD2280/beta
DHD2280 Aug 28, 2024
93b4669
Make floating action buttons larger
Mahmud0808 Aug 28, 2024
8a104bb
Refactor utils
Mahmud0808 Aug 28, 2024
2e003d7
Add haptic feedback in some views
Mahmud0808 Aug 28, 2024
edf19af
Fixed switch preference not disabling automatically
Mahmud0808 Aug 28, 2024
8cddc78
Refactor utils [2/2]
Mahmud0808 Aug 28, 2024
31c5340
Fix header image fade amount value format
Mahmud0808 Aug 28, 2024
d824c86
Refactor lockscreen widgets view
Mahmud0808 Aug 28, 2024
7f6e170
Use coroutine instead of thread
Mahmud0808 Aug 28, 2024
2b6ffb6
Fix QS light theme freezing UI
Mahmud0808 Aug 28, 2024
c1e4c82
Refactor and remove unused variables
Mahmud0808 Aug 28, 2024
4554bd8
Refactor "disable monet" option
Mahmud0808 Aug 28, 2024
3b174d5
Allow disabling haptic feedback
Mahmud0808 Aug 28, 2024
667d45b
Convert location browse activity to fragment
Mahmud0808 Aug 28, 2024
e636b34
Refactor weather icon pack list view
Mahmud0808 Aug 28, 2024
53e6ec0
Add shadow to lockscreen weather view for better visibility
Mahmud0808 Aug 28, 2024
3614235
Hide media player customization for android 14+
Mahmud0808 Aug 28, 2024
e5c3b94
Filter distinct search results
Mahmud0808 Aug 28, 2024
776657b
Misc Lockscreen Widgets improvements (#589)
DHD2280 Aug 29, 2024
a470403
Change location searchbar background color
Mahmud0808 Aug 29, 2024
b22d0d8
Attempt to fix fragment transaction error
Mahmud0808 Aug 29, 2024
301d665
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Aug 29, 2024
2a62a2f
Bring onboarding page indicators below
Mahmud0808 Aug 29, 2024
c27010d
Attempt to fix fragment transaction issue
Mahmud0808 Aug 29, 2024
4239647
Use coroutine instead of thread
Mahmud0808 Aug 29, 2024
9981dea
Avoid storing fragment manager
Mahmud0808 Aug 29, 2024
135faff
Improve header clock for android 14
Mahmud0808 Aug 29, 2024
376963a
LockscreenWidgets: try catch in ActivityStarter
DHD2280 Aug 29, 2024
5907566
LockscreenWidgets: more check for ActivityStarter
DHD2280 Aug 29, 2024
126f0e5
Merge pull request #590 from DHD2280/beta
DHD2280 Aug 29, 2024
0e28e17
LockscreenWidgets: use own strings for ringer mode
DHD2280 Aug 29, 2024
04d21f4
Fix depth wallpaper preference mismatch
Mahmud0808 Aug 30, 2024
4bea844
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Aug 30, 2024
694d820
Bump AGP
Mahmud0808 Aug 30, 2024
c3e95d6
Refactor header clock code
Mahmud0808 Aug 30, 2024
9c3bfa5
Bring back old methods of removing stock header clock
Mahmud0808 Aug 30, 2024
7b961dd
Fix slider widget reset button visibility
Mahmud0808 Aug 30, 2024
5240f52
Improve enabled state and add vibration for reset button
Mahmud0808 Aug 30, 2024
f58b367
Add vibration to all pending action buttons
Mahmud0808 Aug 30, 2024
f6533ae
Refactor depth wallpaper for android 14
Mahmud0808 Aug 30, 2024
bff6413
Switch visibility for header clock on android 14+
Mahmud0808 Aug 30, 2024
2a13e54
ML Kit: Handle crash if subject segmentation not available
Mahmud0808 Aug 30, 2024
fd72b12
Remove back press handling
Mahmud0808 Aug 30, 2024
0dcd62f
Fix reset button enabled state for slider preference
Mahmud0808 Aug 30, 2024
95f7a1a
Fix header clock crash on landscape for android 14
Mahmud0808 Aug 30, 2024
d41de0b
Merge remote-tracking branch 'origin/beta' into beta
DHD2280 Aug 30, 2024
8441955
LockscreenWeather: color prefs key
DHD2280 Aug 30, 2024
c475c84
LockscreenWeather: color prefs key
DHD2280 Aug 30, 2024
a067cc6
LockscreenWeather: increase margins
DHD2280 Aug 30, 2024
cd09aa1
Merge pull request #591 from DHD2280/beta
DHD2280 Aug 30, 2024
ce626c6
Improve decimal format
DHD2280 Aug 30, 2024
b5f430f
LockscreenWidgets: more try catch
DHD2280 Aug 30, 2024
c12e5af
Merge pull request #592 from DHD2280/beta
DHD2280 Aug 30, 2024
27fdad8
Fix header clock crash on landscape for android 14
Mahmud0808 Aug 30, 2024
8e4954d
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Aug 31, 2024
cc6162e
LockscreenWidgets: placeWidgets
DHD2280 Aug 31, 2024
e4babe8
Merge pull request #593 from DHD2280/beta
DHD2280 Aug 31, 2024
0fd2c2e
Attempt to fix fragment illegal state exception
Mahmud0808 Aug 31, 2024
41c1c75
Unhide media icons from android 14+
Mahmud0808 Aug 31, 2024
1fbfeb8
Improve header clock for android 14
Mahmud0808 Aug 31, 2024
3cae7d2
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Aug 31, 2024
19609d9
Remove fixed status icons for android 13+
Mahmud0808 Aug 31, 2024
e1791d7
Fix going back on home screen shows blank page
Mahmud0808 Aug 31, 2024
a607e9d
More improvements for header clock on android 14
Mahmud0808 Aug 31, 2024
eeb5444
New Crowdin translations by GitHub Action
crowdin-bot Sep 1, 2024
48d576c
Use property access syntax
Mahmud0808 Sep 1, 2024
d98b1bb
Fix lockscreen clock user and device name changer
Mahmud0808 Sep 1, 2024
a087500
Fix header clock not changing color on theme switch
Mahmud0808 Sep 1, 2024
b05259c
Optimize header clock view handling on rotation for android 14
Mahmud0808 Sep 1, 2024
3296b17
Merge pull request #594 from Mahmud0808/beta-localization
Mahmud0808 Sep 1, 2024
4a74a9a
Refactor header image view class
Mahmud0808 Sep 2, 2024
3f5bae0
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Sep 2, 2024
7c7d7cc
Refactor lockscreen widgets classes
Mahmud0808 Sep 2, 2024
3fd2539
Header Image: Fix specified child already has a parent
Mahmud0808 Sep 2, 2024
1c5a211
Header Image: Fix specified child already has a parent
Mahmud0808 Sep 2, 2024
375a036
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Sep 2, 2024
44ddc68
Remove ids from weather view
Mahmud0808 Sep 2, 2024
1c4695c
Remove ids from widget view
Mahmud0808 Sep 2, 2024
9ed1f8b
Header Image: Fix specified child already has a parent [2/2]
Mahmud0808 Sep 2, 2024
7c98a40
Header Clock: Fix null pointer reference on dispatchConfigurationChange
Mahmud0808 Sep 2, 2024
8f673ac
Refactor background chip class
Mahmud0808 Sep 2, 2024
68f3811
Add summary for depth wallpaper foreground opacity
Mahmud0808 Sep 3, 2024
16c53ae
Update tag
Mahmud0808 Sep 3, 2024
71ddedc
Add callback for ACL connection state changes
Mahmud0808 Sep 4, 2024
854b04b
Add Oneplus style QS header for android 14
Mahmud0808 Sep 4, 2024
b3038cb
Fix support for custom header clock
Mahmud0808 Sep 4, 2024
f2f752e
Fix search result crash on home page
Mahmud0808 Sep 4, 2024
1afafa8
Refactor xposed themes and fix freezing issue
Mahmud0808 Sep 4, 2024
c5a35d0
OP QS Header: Fix colors and limit max rows to 3
Mahmud0808 Sep 4, 2024
9192482
Merge pull request #599 from Mahmud0808/op-media
Mahmud0808 Sep 4, 2024
7906c22
OP QS Header: Fix missing BluetoothController class
Mahmud0808 Sep 4, 2024
5fb301b
Remove OnBackPressedCallback
Mahmud0808 Sep 4, 2024
b68d28a
Header Image: Check layout params before setting
Mahmud0808 Sep 4, 2024
b7607d8
Add oneplus qs header in searchable fragment list
Mahmud0808 Sep 4, 2024
e4b118b
OP QS Header: Add alternative MediaControlPanel class
Mahmud0808 Sep 4, 2024
7991591
OP QS Header: Ensure layout created before updating
Mahmud0808 Sep 4, 2024
4d1fdf8
OP QS Header: Use app icon if media icon not available
Mahmud0808 Sep 4, 2024
242a82d
Add a few checks to avoid crashing
Mahmud0808 Sep 4, 2024
5036b43
Handle some missing methods and fields
Mahmud0808 Sep 4, 2024
7e06030
OpQsHeader: misc improvements
DHD2280 Sep 4, 2024
353388e
Merge pull request #600 from DHD2280/beta
DHD2280 Sep 4, 2024
ea4c0d1
OpQsHeader: misc improvements
DHD2280 Sep 4, 2024
8c08138
Merge pull request #601 from DHD2280/beta
DHD2280 Sep 4, 2024
ebbda01
Refactor searchable fragments
Mahmud0808 Sep 5, 2024
de4171e
OP QS Header: Revert color initialization
Mahmud0808 Sep 5, 2024
3f7b797
Add checks for method availability
Mahmud0808 Sep 5, 2024
dc6cd87
OP QS Header: Ensure view is removed from parent before adding
Mahmud0808 Sep 5, 2024
3bc21ce
Header Image: Revert view initialization method
Mahmud0808 Sep 5, 2024
254576e
OP QS Header: Extract view to different class
Mahmud0808 Sep 5, 2024
c28397a
OP QS Header: Refactor and fix missing playback state method
Mahmud0808 Sep 5, 2024
cc24883
OP QS Header: Improve artwork transition and blur
Mahmud0808 Sep 5, 2024
2e35927
OP QS Header: Surround bluetooth dialog view model with try catch block
Mahmud0808 Sep 5, 2024
89a33e6
OP QS Header: Misc fixes and improvements
Mahmud0808 Sep 5, 2024
1dcf0f5
Fix header image overlapping other custom elements
Mahmud0808 Sep 5, 2024
b8ea261
Moved common methods
DHD2280 Sep 5, 2024
7aba99b
Merge pull request #603 from DHD2280/beta
Mahmud0808 Sep 6, 2024
00d2c8e
OP QS Header: Add fallback resources
Mahmud0808 Sep 6, 2024
2bba14a
OP QS Header: Dynamically calculate tile and media player size
Mahmud0808 Sep 6, 2024
e4aa684
OP QS Header: Update tile icon colors
Mahmud0808 Sep 6, 2024
385d9c6
OP QS Header: Add support for multiple media sessions
Mahmud0808 Sep 6, 2024
87129f3
Fix logger tags
Mahmud0808 Sep 6, 2024
017c64f
OP QS Header: Show app icon if media player icon unavailable
Mahmud0808 Sep 6, 2024
af1d6a6
Decrease category title text size
Mahmud0808 Sep 6, 2024
3cf1262
Remove unused menu resources
Mahmud0808 Sep 6, 2024
69aea6e
Expose experimental settings
Mahmud0808 Sep 6, 2024
9e0aaf7
Experimental: Add notification sender for testing purposes
Mahmud0808 Sep 6, 2024
aa6600d
OP QS Header: Add alternative MediaOutputDialogFactory create method
Mahmud0808 Sep 6, 2024
8e88213
OP QS Header: Don't modify anything if not enabled
Mahmud0808 Sep 7, 2024
cab4a6c
Prioritize bluetooth dialog view
Mahmud0808 Sep 7, 2024
b064cd7
OP QS Header: Add support for custom QS tiles and text colors
Mahmud0808 Sep 7, 2024
c6e6fd7
New Crowdin translations by GitHub Action
crowdin-bot Sep 8, 2024
80b11d0
OP QS Header: Add alternative TileLayout class
Mahmud0808 Sep 8, 2024
00401d6
Merge pull request #607 from Mahmud0808/beta-localization
Mahmud0808 Sep 8, 2024
662661d
Hook switchToParent to check if index out of bounds
Mahmud0808 Sep 8, 2024
aca67d1
OP QS Header: Add more dynamic resources
Mahmud0808 Sep 8, 2024
bed60b5
OP QS Header: Add support for multiple media player instances (#609)
Mahmud0808 Sep 9, 2024
8e587d6
OP QS Header: Add horizontal fading edge
Mahmud0808 Sep 9, 2024
90651b2
Overlay state check: Fix index 0 out of bounds for length 0
Mahmud0808 Sep 9, 2024
75b83d0
OP QS Header: Disable marquee for text views
Mahmud0808 Sep 9, 2024
4fddee6
OP QS Header: Update bluetooth text and icon properly
Mahmud0808 Sep 9, 2024
5a0bacc
Fixed Custom Clock and OP QS Header index out of bound exception
Mahmud0808 Sep 9, 2024
dde3212
Experimental: Add option for changing OP QS expanded gap
Mahmud0808 Sep 9, 2024
44fc82e
Fix notification color fix not effecting
Mahmud0808 Sep 9, 2024
ba01fdc
OP QS Header: Make app icon rounded
Mahmud0808 Sep 9, 2024
ac4cbd7
OP QS Header: Increase media layout touch region
Mahmud0808 Sep 9, 2024
f02fa5c
OP QS Header: Click artwork to open music player
Mahmud0808 Sep 9, 2024
0114449
OP QS Header: Fix blur level not applying without restarting systemui
Mahmud0808 Sep 10, 2024
a2473ef
Controllers Provider: Remove log for missing bluetooth dialog viewmodel
Mahmud0808 Sep 11, 2024
69f85a3
OP QS Header: Fix media player view already has a parent
Mahmud0808 Sep 11, 2024
a004c9f
OP QS Header: Fix media player view already has a parent
Mahmud0808 Sep 11, 2024
45c662c
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Sep 11, 2024
585e1e3
OP QS Header: Fix stock media player not hidden
Mahmud0808 Sep 11, 2024
100c7dc
OP QS Header: Make stock media player removal optional
Mahmud0808 Sep 11, 2024
3d070d9
More Weather Icons
DHD2280 Sep 11, 2024
e6143bc
Merge pull request #611 from DHD2280/beta
DHD2280 Sep 11, 2024
6c53a97
OP QS Header: Remove app icon bitmap
Mahmud0808 Sep 12, 2024
f03c03a
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Sep 12, 2024
37758b9
OP QS Header: Use active tile color for app icon background
Mahmud0808 Sep 12, 2024
31ff6f1
OP QS Header: Use IO Coroutine Dispatcher instead of Main
Mahmud0808 Sep 12, 2024
5df2325
WeatherWork: use CompletableFuture for obtaining location
DHD2280 Sep 12, 2024
fc84be3
OP QS Header: Fix coroutines dispatcher
Mahmud0808 Sep 13, 2024
5528a07
Merge pull request #612 from DHD2280/beta
DHD2280 Sep 14, 2024
10df185
Icon Packs: Remove lottie UDFPS icons
Mahmud0808 Sep 14, 2024
c856530
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Sep 14, 2024
f9f02a1
OP QS Header: Fix music icon color in light mode
Mahmud0808 Sep 14, 2024
0029649
Rename device widget layout
Mahmud0808 Sep 14, 2024
1081897
Lockscreen Weather: Refactor and remove space before temperature unit
Mahmud0808 Sep 14, 2024
4253705
New Crowdin translations by GitHub Action
crowdin-bot Sep 15, 2024
ff1ea72
Lockscreen Clock: Fix 24 hours format for style 1
Mahmud0808 Sep 17, 2024
8d34ec8
Merge pull request #613 from Mahmud0808/beta-localization
Mahmud0808 Sep 18, 2024
460cc4e
Experimental: Hide OP QS Header Gap for below android 14 users
Mahmud0808 Sep 18, 2024
ad3bdb4
Merge remote-tracking branch 'origin/beta' into beta
Mahmud0808 Sep 18, 2024
636f221
OP QS Header: Refactor and fix some issues
Mahmud0808 Sep 18, 2024
cebfce4
Disable skipping installation
Mahmud0808 Sep 18, 2024
1db1636
Lockscreen Widgets: Refactor and make extended FAB left aligned
Mahmud0808 Sep 18, 2024
71cef07
Depth Wallpaper: Fix background not applying if SystemUI is restarted
Mahmud0808 Sep 18, 2024
758abc8
OP QS Header: Use tile color for default media icon background
Mahmud0808 Sep 18, 2024
3e763da
Bump version code
Mahmud0808 Sep 18, 2024
26158f2
Stable (#617)
Mahmud0808 Sep 18, 2024
507f0b5
Merge pull request #618 from Mahmud0808/stable
Mahmud0808 Sep 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
OP QS Header: Fix colors and limit max rows to 3
Signed-off-by: DrDisagree <crazymahmud08@gmail.com>
  • Loading branch information
Mahmud0808 committed Sep 4, 2024
commit c5a35d0f7e52d8069c8937048c9f38e699ac465b
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class OpQsHeader(context: Context?) : ModPack(context!!) {
private lateinit var mWifiManager: WifiManager
private lateinit var mBluetoothManager: BluetoothManager

private var defaultCornerRadius by Delegates.notNull<Float>()
private var qsTileCornerRadius by Delegates.notNull<Float>()
private lateinit var qsTileBackgroundDrawable: Drawable
private lateinit var appIconBackgroundDrawable: GradientDrawable
private lateinit var opMediaForegroundClipDrawable: GradientDrawable
Expand Down Expand Up @@ -679,6 +679,26 @@ class OpQsHeader(context: Context?) : ModPack(context!!) {
}
)

hookAllMethods(
android.content.res.Resources::class.java,
"getInteger",
object : XC_MethodHook() {
override fun beforeHookedMethod(param: MethodHookParam) {
if (!showOpQsHeaderView) return

val resId1 = mContext.resources.getIdentifier(
"quick_settings_max_rows",
"integer",
SYSTEMUI_PACKAGE
)

if (param.args[0] == resId1) {
param.result = 3
}
}
}
)

hookAllMethods(
android.content.res.Resources::class.java,
"getDimensionPixelSize",
Expand Down Expand Up @@ -1399,11 +1419,16 @@ class OpQsHeader(context: Context?) : ModPack(context!!) {

fun onColorsInitialized() {
initResources(mContext)

deferredInternetActiveColorAction?.invoke()
deferredInternetInactiveColorAction?.invoke()
deferredBluetoothActiveColorAction?.invoke()
deferredBluetoothInactiveColorAction?.invoke()
deferredMediaPlayerInactiveColorAction?.invoke()

updateInternetState()
updateBluetoothState()
updateMediaPlayer()
}

private fun updateInternetActiveColors() {
Expand Down Expand Up @@ -1559,7 +1584,7 @@ class OpQsHeader(context: Context?) : ModPack(context!!) {

val rect = RectF(0f, 0f, width.toFloat(), height.toFloat())

Canvas(output).drawRoundRect(rect, defaultCornerRadius, defaultCornerRadius, paint)
Canvas(output).drawRoundRect(rect, qsTileCornerRadius, qsTileCornerRadius, paint)

return output
}
Expand Down Expand Up @@ -1757,11 +1782,11 @@ class OpQsHeader(context: Context?) : ModPack(context!!) {
), mContext
).defaultColor

defaultCornerRadius = mContext.resources.getDimensionPixelSize(
qsTileCornerRadius = mContext.resources.getDimensionPixelSize(
mContext.resources.getIdentifier(
"config_dialogCornerRadius",
"qs_corner_radius",
"dimen",
FRAMEWORK_PACKAGE
SYSTEMUI_PACKAGE
)
).toFloat()
qsTileBackgroundDrawable = ContextCompat.getDrawable(
Expand All @@ -1778,11 +1803,11 @@ class OpQsHeader(context: Context?) : ModPack(context!!) {
}
opMediaForegroundClipDrawable = GradientDrawable().apply {
shape = GradientDrawable.RECTANGLE
cornerRadius = defaultCornerRadius
cornerRadius = qsTileCornerRadius
}
opMediaBackgroundDrawable = GradientDrawable().apply {
shape = GradientDrawable.RECTANGLE
cornerRadius = defaultCornerRadius
cornerRadius = qsTileCornerRadius
colorInactive?.let { colors = intArrayOf(it, it) }
}
opMediaAppIconDrawable = ContextCompat.getDrawable(
Expand Down Expand Up @@ -1846,9 +1871,7 @@ class OpQsHeader(context: Context?) : ModPack(context!!) {
layoutParams = LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
mContext.toPx(128)
).apply {
bottomMargin = mContext.toPx(8)
}
)
orientation = LinearLayout.HORIZONTAL
gravity = Gravity.CENTER_VERTICAL
}
Expand Down Expand Up @@ -1876,7 +1899,7 @@ class OpQsHeader(context: Context?) : ModPack(context!!) {
1F
)
setBackgroundColor(Color.TRANSPARENT)
radius = defaultCornerRadius
radius = qsTileCornerRadius
cardElevation = 0F
(layoutParams as MarginLayoutParams).marginStart = mContext.toPx(4)
}
Expand Down