Commit Graph

79785 Commits

Author SHA1 Message Date
tgex0
2ee7af8ab7 Fix style in SettingInfo (#5140)
Co-authored-by: Zongle Wang <wangzongler@gmail.com>
2025-01-08 17:38:14 +08:00
Goooler
7a4d119afa Fix style 2025-01-08 13:16:24 +08:00
MrSluffy
06689bf0dd fix appdrawer bg color updates during state changes 2025-01-07 18:13:57 +08:00
renovate[bot]
3398fce454 Spotless 7.0.0 (#5138)
* Update plugin com.diffplug.spotless to v7

* Fix styles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2025-01-07 06:42:29 +00:00
MrSluffy
66928cc74d feat : App drawer color 2025-01-07 14:29:00 +08:00
MrSluffy
134c2193d2 feat : hotseat bg configuration
- bg transparency, color
2025-01-07 13:31:11 +08:00
renovate[bot]
cd562b9319 Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.8.0 (#5137)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-07 10:38:12 +08:00
SuperDragonXD
4b0868fdb7 Improve dock background units
- Rename insets to margin
- Change step to something reasonable (5%) - we don't need that much precision
2025-01-05 10:17:24 +08:00
SuperDragonXD
ad1104d107 Refactor search bar settings
- Centralize search bar settings to one screen
- Create two-tab layout
- Tweak main switch preference style
- Move search files to folder
2025-01-05 10:17:19 +08:00
SuperDragonXD
c2665df04f Allow re-arranging popup menu items (#5112)
* feat: Allow re-arranging popup menu items

* Refactor draggable preferences

* Refactor options pop-up drag and drop view

- Move to new screen
- Separate preview and options
2025-01-05 08:30:36 +08:00
Lawnchair Bot
31ff15488a New Crowdin translations by GitHub Action (#5133)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-01-05 03:56:11 +03:30
MrSluffy
38934f824f feat : Adjust page-indicator height to space workspace and hotseat
closes : #4836
2025-01-03 13:17:19 +08:00
MrSluffy
24ba4752ce reload icons upon reset 2025-01-03 08:14:08 +08:00
MrSluffy
bd119f5b4b fixed saved scroll position 2025-01-03 08:05:49 +08:00
MrSluffy
1e9b73707d feat : implementation pause apps 2025-01-01 14:45:23 +08:00
MrSluffy
8b35a95523 Disable themed icons by default
- Themed icons are now disabled by default since most users do not have a third-party themed icon pack installed by default.
2025-01-01 10:47:19 +08:00
MrSluffy
b684505009 fixed 3p themed icons not applying
- closes : #4799
- closes : #4752
- closes : #4267
- closes : #4248
- closes : #4179
- closes : #4157
- closes : #3960
- closes : #3943
- closes : #3408
- closes : #2882
2025-01-01 09:56:15 +08:00
MrSluffy
31dfcc8fe6 fixed style 2024-12-30 12:59:30 +08:00
MrSluffy
eb536c182b fixed adaptive-icon not applying 2024-12-30 12:07:17 +08:00
MrSluffy
aa8dd44d6a Fix widget configuration for two-step process
- closes : #5124

Bug: java.lang.IllegalArgumentException: Bad widget id 2367
2024-12-30 08:32:28 +08:00
Pun Butrach
45c8552319 Reimplement catch RemoteAnimationTarget.rotationChange (#5126)
* Update QuickstepTransitionManager.java

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>

* Update AbsSwipeUpHandler.java

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>

---------

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
2024-12-30 03:56:18 +08:00
Lawnchair Bot
5421b45235 New Crowdin translations by GitHub Action (#5123)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-12-29 03:56:35 +03:30
MrSluffy
4ad2e73075 Fix NullPointerException in WidgetSizes.updateWidgetSizeRangesAsync
This commit addresses a NullPointerException that occurs when updating
widget options in the WidgetSizes class. The fix includes:

- Adding null checks for sizeOptions and currentOptions
- Comparing new sizes with current sizes before updating
- Catching and logging exceptions during widget option updates
- Returning null from getWidgetSizeOptions if it fails to create a valid Bundle

These changes should resolve the "Attempt to invoke virtual method 'void
android.os.Bundle.putAll(android.os.Bundle)' on a null object reference" error
and improve the robustness of widget size updates.

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.os.Bundle.putAll(android.os.Bundle)' on a null object reference
at android.os.Parcel.createExceptionOrNull(Parcel.java:3075)
at android.os.Parcel.createException(Parcel.java:3053)
at android.os.Parcel.readException(Parcel.java:3036)
at android.os.Parcel.readException(Parcel.java:2978)
at com.android.internal.appwidget.IAppWidgetService$Stub$Proxy.updateAppWidgetOptions(IAppWidgetService.java:1017)
at android.appwidget.AppWidgetManager.updateAppWidgetOptions(AppWidgetManager.java:727)
at com.android.launcher3.widget.util.WidgetSizes.lambda$updateWidgetSizeRangesAsync$0(Unknown Source:31)
at com.android.launcher3.widget.util.WidgetSizes.a(Unknown Source:0)
at ba.a.run(Unknown Source:10)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.appwidget.AppWidgetServiceImpl.updateAppWidgetOptions(AppWidgetServiceImpl.java:2193)
at com.android.internal.appwidget.IAppWidgetService$Stub.onTransact(IAppWidgetService.java:500)
at android.os.Binder.execTransactInternal(Binder.java:1375)
at android.os.Binder.execTransact(Binder.java:1311)
2024-12-28 09:31:58 +08:00
MrSluffy
d401ba32fd Fix widget-related crash in LauncherWidgetHolder
- Adding null checks before calling methods on mWidgetHost
- Ensuring the listening flag is always updated, even if an exception occurs

This should resolve the "java.lang.NullPointerException: Attempt to read from
field 'com.android.server.appwidget.AppWidgetServiceImpl$ProviderId'" error
and improve overall stability when dealing with widgets

error: Uncaught exception

java.lang.RuntimeException: Unable to stop activity {app.lawnchair.nightly/app.lawnchair.LawnchairLauncher}: java.lang.NullPointerException: Attempt to read from field 'com.android.server.appwidget.AppWidgetServiceImpl$ProviderId com.android.server.appwidget.AppWidgetServiceImpl$Provider.id' on a null object reference in method 'android.util.SparseArray com.android.server.appwidget.AppWidgetServiceImpl$Host.getWidgetUids()'
at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5484)
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:5456)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:5525)
at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:43)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2423)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:334)
at android.app.ActivityThread.main(ActivityThread.java:8348)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
Caused by: java.lang.NullPointerException: Attempt to read from field 'com.android.server.appwidget.AppWidgetServiceImpl$ProviderId com.android.server.appwidget.AppWidgetServiceImpl$Provider.id' on a null object reference in method 'android.util.SparseArray com.android.server.appwidget.AppWidgetServiceImpl$Host.getWidgetUids()'
at android.os.Parcel.createExceptionOrNull(Parcel.java:2446)
at android.os.Parcel.createException(Parcel.java:2424)
at android.os.Parcel.readException(Parcel.java:2407)
at android.os.Parcel.readException(Parcel.java:2349)
at com.android.internal.appwidget.IAppWidgetService$Stub$Proxy.stopListening(IAppWidgetService.java:792)
at android.appwidget.AppWidgetHost.stopListening(AppWidgetHost.java:274)
at com.android.launcher3.widget.LauncherWidgetHolder.stopListening(Unknown Source:2)
at com.android.launcher3.widget.LauncherWidgetHolder.setShouldListenFlag(Unknown Source:40)
at com.android.launcher3.widget.LauncherWidgetHolder.setActivityStarted(Unknown Source:1)
at com.android.launcher3.Launcher.onStop(Unknown Source:25)
at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1496)
at android.app.Activity.performStop(Activity.java:8599)
at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5476)
... 14 more
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.appwidget.AppWidgetServiceImpl$Host.getWidgetUids(AppWidgetServiceImpl.java:4444)
at com.android.server.appwidget.AppWidgetServiceImpl.stopListening(AppWidgetServiceImpl.java:866)
at com.android.internal.appwidget.IAppWidgetService$Stub.onTransact(IAppWidgetService.java:311)
at android.os.Binder.execTransactInternal(Binder.java:1179)
at android.os.Binder.execTransact(Binder.java:1143)
2024-12-28 09:24:35 +08:00
MrSluffy
99b65be3c2 Fixed crashes on android 8 2024-12-27 15:46:16 +08:00
MrSluffy
4667f30028 Fixed crash on api 28
- closes : #5076
2024-12-27 14:41:11 +08:00
MrSluffy
7169349f02 properly check for archiving support 2024-12-27 10:44:48 +08:00
MrSluffy
a7c80d909b fixed method privateSpaceSettingsIntent not found 2024-12-27 09:56:03 +08:00
MrSluffy
6033863bf8 Fixed possible crashes below U 2024-12-27 09:40:06 +08:00
MrSluffy
1bc5b0459c Fixed java.lang.NoSuchMethodError: No virtual method getLauncherUserInfo 2024-12-27 09:31:06 +08:00
MrSluffy
fcf6f668ce update dock preview state when change bottom space 2024-12-27 07:20:59 +08:00
MrSluffy
73969618ba Fixed crashes private space in some rom
- closes : #5119
2024-12-27 06:51:35 +08:00
MrSluffy
ce2e59f2af Fix widget restoration in LawnchairBackup
- closes : #3729
2024-12-26 19:39:04 +08:00
MrSluffy
1a84e8105a feat : re-implement private space
- closes : #4745
2024-12-26 18:15:22 +08:00
MrSluffy
d2325214ec Fixed crashes in one-handed support check 2024-12-26 15:11:02 +08:00
MrSluffy
1c45a7505d fixed icon get bigger when tapped
- closes : #5074
2024-12-26 13:19:09 +08:00
MrSluffy
c41eb8ac8f Fixed app shortcut widget
- closes : #5101
- closes : #5056
- closes : #5055
2024-12-26 10:48:38 +08:00
MrSluffy
eb6e45d7ca Fix RuntimeException when toggling At A Glance option
Resolves issue: "Screen id 0 already exists" error
2024-12-26 07:53:01 +08:00
MrSluffy
689d250d4b feat : hotseat background 2024-12-24 16:29:57 +08:00
MrSluffy
4bc8e8c3be fixed style 2024-12-24 15:13:23 +08:00
MrSluffy
b9ca019051 dock preview update when change stroke color 2024-12-24 14:43:36 +08:00
MrSluffy
ecfb810204 feat : add dock preview 2024-12-24 14:36:49 +08:00
renovate[bot]
d682681bf0 Update dependency com.kieronquinn.smartspacer:sdk-client to v1.1 (#5115)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-24 06:59:07 +08:00
John Andrew Camu
4530fc8c8e Fixed grid migration to keep item positions (#5114)
- Revised migrate method to process each screen independently, preventing
  merging of items from different screens
- Implemented dynamic item placement logic to maintain relative positions
  when changing grid sizes

These changes address issues with item positioning, screen merging, and
maintain a more intuitive layout when changing grid sizes. The migration
now respects the original screen structure and preserves relative item
positions as much as possible

- closes : #5016
- closes : #5003
- closes : #4809
2024-12-23 21:39:36 +08:00
MrSluffy
91971a7a0b fixed crashes in motorola a12
- closes : #5110
2024-12-22 12:04:22 +08:00
Lawnchair Bot
248042fe40 New Crowdin translations by GitHub Action (#5109)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-12-22 03:56:17 +03:30
MrSluffy
29d3ad8891 feat : allow placing widget in hotseat 2024-12-21 13:42:03 +08:00
SuperDragonXD
ab91e04b7f Fix drawer QSB size 2024-12-21 12:21:03 +08:00
MrSluffy
491429c70e fixes in at glance
- closes : #5103
- closes : #5057
- closes : #5066
2024-12-21 12:12:04 +08:00
renovate[bot]
b31bf4d7b5 Update dependency gradle to v8.12 (#5106)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-21 08:35:33 +08:00