Commit Graph

57076 Commits

Author SHA1 Message Date
MrSluffy
d040d0bdc4 Update framework-14.jar 2023-12-17 12:29:45 +08:00
MrSluffy
fd4b794c3d Improve search result ui 2023-12-17 11:23:15 +08:00
MrSluffy
53a107f61c Replicate Pixel Launcher
- Add workspace from Pixel Launcher
2023-12-17 10:31:01 +08:00
MrSluffy
8c1fb3cc8a Fixed styling 2023-12-17 07:21:38 +08:00
MrSluffy
0f1c17c0d7 Fixed Unsupported error in A10
Lawnchair (Debug) bug report Dec 16, 2023 9:21:19 PM
version: 14 Dev (4276067) (13)
commit: 4276067
build.brand: Xiaomi
build.device: vince
build.display: QQ3A.200805.001
build.fingerprint: google/angler/angler:7.1.2/N2G47H/3783593:user/release-keys
build.hardware: qcom
build.id: QQ3A.200805.001
build.manufacturer: Xiaomi
build.model: Redmi 5 Plus
build.security.level: 2023-04-05
build.product: qassa_vince
build.type: user
version.codename: REL
version.incremental: 92d526381b
version.release: 10
version.sdk_int: 29
display.density_dpi: 440
isRecentsEnabled: false

error: Uncaught exception

android.view.InflateException: Binary XML file line #45 in app.lawnchair.debug:layout/work_mode_fab: Binary XML file line #45 in app.lawnchair.debug:layout/work_mode_fab: Error inflating class TextView
Caused by: android.view.InflateException: Binary XML file line #45 in app.lawnchair.debug:layout/work_mode_fab: Error inflating class TextView
Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 5: TypedValue{t=0x2/d=0x7f0403cd a=4 r=0x7f06042e}
	at android.content.res.TypedArray.getColorStateList(TypedArray.java:597)
	at android.widget.TextView.readTextAppearance(TextView.java:3966)
	at android.widget.TextView.<init>(TextView.java:1069)
	at android.widget.TextView.<init>(TextView.java:970)
	at android.widget.TextView.<init>(TextView.java:966)
	at app.lawnchair.LawnchairLayoutFactory$constructorMap$2.invoke(LawnchairLayoutFactory.kt:18)
	at app.lawnchair.LawnchairLayoutFactory$constructorMap$2.invoke(LawnchairLayoutFactory.kt:18)
	at app.lawnchair.LawnchairLayoutFactory.onCreateView(LawnchairLayoutFactory.kt:29)
	at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1069)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1005)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:969)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1131)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1092)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:682)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:534)
	at com.android.launcher3.allapps.WorkProfileManager.attachWorkModeSwitch(WorkProfileManager.java:174)
	at com.android.launcher3.allapps.WorkProfileManager.updateCurrentState(WorkProfileManager.java:158)
	at com.android.launcher3.allapps.WorkProfileManager.reset(WorkProfileManager.java:141)
	at com.android.launcher3.allapps.ActivityAllAppsContainerView.reset(ActivityAllAppsContainerView.java:502)
	at com.android.launcher3.allapps.ActivityAllAppsContainerView.reset(ActivityAllAppsContainerView.java:468)
	at com.android.launcher3.Launcher.onStateSetEnd(Launcher.java:1280)
	at com.android.launcher3.uioverrides.QuickstepLauncher.onStateSetEnd(QuickstepLauncher.java:484)
	at com.android.launcher3.uioverrides.QuickstepLauncher.onStateSetEnd(QuickstepLauncher.java:189)
	at com.android.launcher3.statemanager.StateManager.onStateTransitionEnd(StateManager.java:400)
	at com.android.launcher3.statemanager.StateManager.-$$Nest$monStateTransitionEnd(Unknown Source:0)
	at com.android.launcher3.statemanager.StateManager$1.onAnimationSuccess(StateManager.java:377)
	at com.android.launcher3.anim.AnimationSuccessListener.onAnimationEnd(AnimationSuccessListener.java:40)
	at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:554)
	at android.animation.AnimatorSet.endAnimation(AnimatorSet.java:1301)
	at android.animation.AnimatorSet.doAnimationFrame(AnimatorSet.java:1086)
	at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)
	at android.animation.AnimationHandler.access$100(AnimationHandler.java:37)
	at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:965)
	at android.view.Choreographer.doCallbacks(Choreographer.java:791)
	at android.view.Choreographer.doFrame(Choreographer.java:722)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:952)
	at android.os.Handler.handleCallback(Handler.java:883)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:214)
	at android.app.ActivityThread.main(ActivityThread.java:7396)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2023-12-17 07:20:21 +08:00
MrSluffy
4276067c6c Bring back OnBackPressedHandler
- Bring back OnBackPressedHandler so we can support lower version

TODO : Recreate OnBackAnimationCallback
2023-12-16 18:59:08 +08:00
MrSluffy
cc8f9828ab Merge branch 'heads/android-14.0.0_r18' into 14-dev 2023-12-16 17:18:13 +08:00
MrSluffy
32700b0100 Merge branch 'android14-release' into 14-dev 2023-12-13 18:47:55 +08:00
John Andrew Camu
5931c9afec Fix crash a9 (#3836)
* Fix crash on Android 9 (#3808)

- Initial support for A9


Co-authored-by: John Andrew Camu <werdna.jac@gmail.com>
Co-authored-by: Rafael de Moura Dev <93414086+Rafael2616@users.noreply.github.com>
2023-12-09 14:13:47 +08:00
renovate[bot]
dedd16d2c5 Update libsuVersion to v5.2.2 (#3834)
* Update libsuVersion to v5.2.2

* Allow libsu

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2023-12-09 01:56:56 +00:00
John Andrew Camu
be8bb75d95 Introduce Lawnchair Advance Search (#3785)
* Introduce Lawnchair Device Search

Initial Implementation device search in Lawnchair:
Enables search functionality across Files, Contacts, and Suggestions on the Startpage.

* Apply reviewed suggestions by @Gooler

- Use retrofit for fetching suggestions

* use kotlinxJson

* Separate suggestion

* Apply changes code refine @Goooler

* Fix styling

* Implement MIME Type Compat

* Apply suggestion changes by @suphon-t

* Apply suggestion changes by @SuperDragonXD

* Cleanup

* Remodel FileInfo

* Private retrofit

* Clean up SearchRequest

* Add FileExtensions

* Optimize file search method

* Fix style

* Rename

* Optimize file opening

* Add type checkers

* Reformat AVDs

* Fixed crash java.lang.ClassCastException

error logs : https://katb.in/abahivihaqu

* More fixes

* Surround try catch to give proper error logs

java.lang.NullPointerException
	at app.lawnchair.search.data.SearchRequestKt$findContactsByName$2.invokeSuspend(SearchRequest.kt:124)
	at app.lawnchair.search.data.SearchRequestKt$findContactsByName$2.invoke(Unknown Source:8)
	at app.lawnchair.search.data.SearchRequestKt$findContactsByName$2.invoke(Unknown Source:4)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
	at app.lawnchair.search.data.SearchRequestKt.findContactsByName(SearchRequest.kt:68)
	at app.lawnchair.search.LawnchairSearchAlgorithm$performDeviceWideSearch$2.invokeSuspend(LawnchairSearchAlgorithm.kt:152)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)

* Fixed opened file instead of just redirect to file manager

* Fixed crash opening folder

* Initial implementation callback

* Add max results option for files, suggestion and people

* Add initial settings entry

* Properly use folder mimetype

* Fixed target icon styling

* Cleanups

* Revert

* Fixes

* Apply suggestions by @Goooler

* Fixed crash on external storage directory

* Implement history keyword using built-in SearchRecentSuggestionsProvider

* misc fixes

* Add timeout 3 seconds

- As we don't how long gonna take to receive response in startpage

* Misc fixes

* Misc fixes

---------

Co-authored-by: Goooler <wangzongler@gmail.com>
2023-12-09 08:13:28 +08:00
renovate[bot]
bd461eb474 Update actions/stale action to v9 (#3832)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 23:43:12 +08:00
renovate[bot]
f4425d95e3 Update Kotlin, KSP and Compose Compiler (#3759)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 08:28:41 +08:00
renovate[bot]
63c03d2ef9 Update actions/setup-python action to v5 (#3828)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 21:15:32 +08:00
renovate[bot]
615ed9590b Update plugin androidx.baselineprofile to v1.2.2 (#3826)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 02:52:19 +00:00
renovate[bot]
13cb1a0f8c Update dependency androidx.benchmark:benchmark-macro-junit4 to v1.2.2 (#3825)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 02:51:50 +00:00
Goooler
31cb3ba4be Configure Baseline Profile generation (#3789)
https://developer.android.com/topic/performance/baselineprofiles/configure-baselineprofiles
https://developer.android.com/topic/performance/baselineprofiles/create-baselineprofile#create-new-profile
2023-12-06 10:45:39 +08:00
renovate[bot]
ba93bfbe59 Update plugin com.gradle.enterprise to v3.16 (#3824)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 01:56:03 +08:00
Pun Butrach
2c28940c3e Update repository badges (#3822) 2023-12-05 15:35:16 +08:00
renovate[bot]
67a1da348a Update plugin com.diffplug.spotless to v6.23.3 (#3821)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 15:17:35 +08:00
Goooler
cea154eb7d Tweak CI configs (#3773)
* Tweak CI config

- Verify release build for every commit or PR, so that we can found potential obfuscation issues.
- Merge build_debug_apk.yml with build_release_apk.yml.
- Rename build_debug_apk.yml to ci.yml

* Cleanup

* Update ci.yml

* Fix release_update.yml

* Revert
2023-12-03 14:11:37 +08:00
Lawnchair Bot
acfe0ba3a6 New Crowdin translations by GitHub Action (#3819)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2023-12-03 03:47:26 +03:30
renovate[bot]
138c83d3b1 Update Dagger to v2.49 (#3811)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-02 10:43:15 +08:00
John Andrew Camu
e79278e2db Fix DT2S (Root) using keyevent (#3799)
* Add alternative root execution for dt2s

* Fix styling

* Use Shell instead
2023-12-02 04:03:22 +08:00
John Andrew Camu
4402ef1bf3 another fixed oneui 11 (#3810)
android.view.InflateException: Binary XML file line #25 in app.lawnchair.debug:layout/task_desktop: Resource ID #0x106002f
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x106002f
	at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:255)
	at android.content.res.Resources.getColor(Resources.java:1169)
	at com.android.quickstep.views.DesktopTaskView.onFinishInflate(DesktopTaskView.java:124)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1134)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
	at com.android.launcher3.util.ViewPool.inflateNewView(ViewPool.java:106)
	at com.android.launcher3.util.ViewPool.lambda$initPool$1(ViewPool.java:69)
	at com.android.launcher3.util.ViewPool.$r8$lambda$wSRnQcMZiOmM7xwf4gm88rNehhg(Unknown Source:0)
	at com.android.launcher3.util.ViewPool$$ExternalSyntheticLambda1.run(Unknown Source:8)
	at java.lang.Thread.run(Thread.java:923)
2023-12-01 18:09:30 +08:00
John Andrew Camu
0984af2aeb Fixed crash on a11 oneui (#3801)
android.view.InflateException: Binary XML file line #27 in app.lawnchair.debug:layout/task_desktop: Resource
2023-12-01 16:11:57 +08:00
John Andrew Camu
282edc72a6 Fixed crash oppo A11 (#3809)
logs : https://katb.in/icicokoxuru
2023-12-01 16:06:20 +08:00
Goooler
b7a32a0711 Add a switch to control suggested apps showing (#3803) 2023-12-01 14:49:17 +08:00
John Andrew Camu
ffacafc22c Revert back configs (#3802) 2023-12-01 06:33:12 +08:00
renovate[bot]
bda49b0fdb Update plugin com.android.library to v8.2.0 (#3805)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-01 02:53:47 +08:00
renovate[bot]
b138ad70f6 Update plugin com.android.application to v8.2.0 (#3804)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-01 02:43:35 +08:00
renovate[bot]
612326f7b3 Update plugin com.diffplug.spotless to v6.23.2 (#3798)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-30 09:57:28 +08:00
John Andrew Camu
d60bced322 Fixed broken widget overlap (#3792)
- Due to the faulty merged of A13
2023-11-30 06:12:12 +08:00
renovate[bot]
c58df33042 Update plugin com.diffplug.spotless to v6.23.1 (#3795)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 18:39:57 +00:00
renovate[bot]
3aa9405a38 Update roomVersion to v2.6.1 (#3796)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 18:38:03 +00:00
renovate[bot]
dabeb5c7c8 Update actions/setup-java action to v4 (#3794)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-30 00:34:41 +08:00
renovate[bot]
7cbc831781 Update dependency gradle to v8.5 (#3793)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-30 00:04:29 +08:00
John Andrew Camu
87f5dfd1c0 Dynamic enable/disable GestureNavContract (#3791)
* Add toggleable separete recent activities

* Fix styling

* Apply suggestions changes by @SuperDragonXD

* Simplify and make it clean suggestion by @suphon-t

- Remove toggle
- Dynamically disable if user used Quickswitch

* remove unused config
2023-11-29 22:18:30 +08:00
Goooler
f696cf8555 Add complete mime types mapping (#3790) 2023-11-29 13:19:25 +08:00
Goooler
4121095c8e Apply desugaring lib
https://developer.android.com/studio/write/java8-support#library-desugaring
2023-11-29 00:04:14 +08:00
renovate[bot]
db281fedb4 Spotless 6.23.0 (#3779)
* Update plugin com.diffplug.spotless to v6.23.0

* Remove ktlint version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2023-11-27 07:25:32 +00:00
Goooler
2c8539c8f0 Catch RemoteAnimationTarget.rotationChange (#3776) 2023-11-27 10:42:32 +08:00
Goooler
5df11142ea Disable trim_trailing_whitespace for md files 2023-11-26 12:34:24 +08:00
Lawnchair Bot
fde10fb727 New Crowdin translations by GitHub Action (#3772)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2023-11-26 03:47:52 +03:30
MrSluffy
ace55c31c2 Don't seal DoubleShadowTextView 2023-11-25 17:35:18 +08:00
Goooler
4d9567d220 Minor Kotlin cleanups (#3769)
* Use data object

* Remove assertion

* Use Enum entries

* Tweaks

* Seal more classes

* Use mapOf

* Use Map.getValue

* Reine styles

* Revert
2023-11-25 16:26:05 +08:00
Goooler
3e9ff6e095 Add unsafeLazy to simplify thread unsafe lazy initializations (#3768)
These fields are initialized on main thread, no need to use default `lazy`.
2023-11-25 12:24:50 +08:00
Goooler
6cf96c056b Fix sectionName order for Simplified Chinese (#3763) 2023-11-25 11:00:00 +08:00
renovate[bot]
ec96e4eb14 Update dependency com.kieronquinn.smartspacer:sdk-client to v1.0.6 (#3765)
* Update dependency com.kieronquinn.smartspacer:sdk-client to v1.0.6

* Update proguard.pro

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2023-11-24 23:03:59 +00:00
Goooler
6d0530333b Fix settings icon in OptionsPopupView (#3764) 2023-11-24 23:21:47 +08:00