Android 12 support, update AndroidX libraries (#2367)
* Android 12 support, update AndroidX libraries * fix ktlint * add Android 12 splash screen support * fix comments in MainActivity * remove deprecated Intent.ACTION_CLOSE_SYSTEM_DIALOGS * delete TimelineViewModelTest * fix notifications on Android 12 * improve splash screen * handle pending intent flags in a dedicated function
This commit is contained in:
parent
221cdb3611
commit
55513e8e2b
25 changed files with 260 additions and 488 deletions
Binary file not shown.
Before Width: | Height: | Size: 9.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB |
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
Binary file not shown.
Before Width: | Height: | Size: 29 KiB |
|
@ -1,11 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<color android:color="@color/tusky_grey_20"/>
|
||||
</item>
|
||||
<item>
|
||||
<bitmap
|
||||
android:src="@drawable/splash"
|
||||
android:gravity="center" />
|
||||
</item>
|
||||
</layer-list>
|
15
app/src/main/res/drawable/ic_splash.xml
Normal file
15
app/src/main/res/drawable/ic_splash.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_height="240dp"
|
||||
android:layout_width="240dp">
|
||||
|
||||
<item android:drawable="@drawable/ic_launcher_background" />
|
||||
|
||||
<item
|
||||
android:top="40dp"
|
||||
android:bottom="40dp"
|
||||
android:left="40dp"
|
||||
android:right="40dp"
|
||||
android:drawable="@drawable/ic_launcher_foreground" />
|
||||
|
||||
</layer-list>
|
|
@ -1,15 +1,5 @@
|
|||
<resources>
|
||||
|
||||
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
|
||||
<item name="android:windowBackground">@drawable/background_splash</item>
|
||||
<item name="colorPrimary">@color/tusky_grey_20</item>
|
||||
<item name="colorPrimaryDark">@color/tusky_grey_20</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="android:windowLightNavigationBar">false</item>
|
||||
<item name="android:navigationBarColor">@color/tusky_grey_20</item>
|
||||
<item name="android:navigationBarDividerColor">@color/tusky_grey_25</item>
|
||||
</style>
|
||||
|
||||
<style name="TuskyTheme" parent="TuskyBaseTheme">
|
||||
<item name="android:windowLightNavigationBar">@bool/lightNavigationBar</item>
|
||||
<item name="android:navigationBarColor">@color/colorBackground</item>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
<color name="white">#fff</color>
|
||||
<color name="black">#000</color>
|
||||
|
||||
<color name="notification_color">@color/tusky_blue</color>
|
||||
|
||||
<!-- the number roughly corresponds to the % lightness of the grey -->
|
||||
<color name="tusky_grey_05">#070b14</color>
|
||||
<color name="tusky_grey_10">#16191f</color>
|
||||
|
@ -24,7 +26,6 @@
|
|||
<color name="tusky_grey_90">#d9e1e8</color>
|
||||
<color name="tusky_grey_95">#ebeff4</color>
|
||||
|
||||
|
||||
<color name="transparent_tusky_blue">#8c2b90d9</color>
|
||||
<color name="transparent_black">#8f000000</color>
|
||||
<color name="header_background_filter_dark">#44000000</color>
|
||||
|
|
|
@ -30,11 +30,10 @@
|
|||
<item name="status_text_large">22sp</item>
|
||||
</style>
|
||||
|
||||
<style name="SplashTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
|
||||
<item name="android:windowBackground">@drawable/background_splash</item>
|
||||
<item name="colorPrimary">@color/tusky_grey_10</item>
|
||||
<item name="colorPrimaryDark">@color/tusky_grey_10</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<style name="SplashTheme" parent="Theme.SplashScreen">
|
||||
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash</item>
|
||||
<item name="windowSplashScreenBackground">@color/tusky_grey_20</item>
|
||||
<item name="postSplashScreenTheme">@style/TuskyTheme</item>
|
||||
</style>
|
||||
|
||||
<style name="TuskyTheme" parent="TuskyBaseTheme" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue