skyline/app/src/main/java/emu/skyline
lynxnb b7548e51cf Use AndroidX use extension function instead of Kotlin built-in one
The Kotlin built-in `use` extension function applies to `AutoCloseable` only, and throws an error if the object it's being called on is not an `AutoCloseable`. This causes `OnScreenView` to fail to inflate on SDK < 31 as it retrieved the current theme primary color with a `TypedArray`, which only implements `AutoCloseable` since SDK 31 (Android 12).
The AndroidX core library provides a `use` extension function that applies to `TypeArray` instead of `AutoCloseable` so the fix is just a simple import.
2023-05-02 12:27:57 +01:00
..
adapter Suppress or resolve common warnings 2023-05-02 12:27:06 +01:00
applet/swkbd Suppress or resolve common warnings 2023-05-02 12:27:06 +01:00
data Suppress AppItem serialVersionUID warning 2023-04-22 19:54:04 +01:00
di Split PreferenceSettings into AppSettings and EmulationSettings 2023-02-27 19:56:53 +01:00
input Use AndroidX use extension function instead of Kotlin built-in one 2023-05-02 12:27:57 +01:00
loader Add TitleId TextView in App Dialog 2022-12-10 14:57:46 +00:00
preference Suppress or resolve common warnings 2023-05-02 12:27:06 +01:00
provider Introduce a dev app flavor for side-by-side installation 2022-10-01 13:01:46 +02:00
settings Implement OSC stick regions 2023-05-02 12:27:57 +01:00
utils Suppress or resolve common warnings 2023-05-02 12:27:06 +01:00
views Fix Android Studio OSC layout preview (again) 2023-04-02 18:16:10 +02:00
AppDialog.kt Centralize missingIcon and condition for use in DataItem 2023-03-15 14:25:24 +01:00
EmulationActivity.kt Implement OSC stick regions 2023-05-02 12:27:57 +01:00
KeyReader.kt Improve robustness of KeyReader.import 2022-11-23 19:49:42 +05:30
MainActivity.kt Don't scroll to the top of the game list on adapter changes 2023-04-27 00:31:14 +02:00
MainViewModel.kt Improve the robustness of the ROMs auto-refresh feature 2023-04-27 19:14:14 +02:00
RomProvider.kt Remove RomFormat as an AppEntry key 2023-04-22 19:54:04 +01:00
SkylineApplication.kt Implement Material You theming support 2023-03-22 21:57:50 +01:00