update dependencies in order to fix restarts of activity when dark-mode enabled (https://issuetracker.google.com/issues/74022852)
This commit is contained in:
parent
47fa9df253
commit
80d5bd9d02
3 changed files with 17 additions and 9 deletions
|
@ -134,12 +134,13 @@ dependencies {
|
|||
|
||||
// https://mvnrepository.com/artifact/androidx.legacy/legacy-support-v4
|
||||
implementation "androidx.legacy:legacy-support-v4:1.0.0"
|
||||
implementation "androidx.core:core:1.1.0-alpha05"
|
||||
implementation "androidx.appcompat:appcompat:1.1.0-alpha04"
|
||||
implementation "androidx.preference:preference:1.1.0-alpha04"
|
||||
implementation "androidx.core:core:1.2.0-alpha01"
|
||||
implementation "androidx.appcompat:appcompat:1.1.0-alpha05"
|
||||
implementation "androidx.preference:preference:1.1.0-alpha05"
|
||||
|
||||
// https://mvnrepository.com/artifact/com.google.android.material/material
|
||||
implementation "com.google.android.material:material:1.1.0-alpha05"
|
||||
implementation "com.google.android.material:material:1.1.0-alpha06"
|
||||
//implementation "com.google.android.material:material:1.0.0"
|
||||
implementation "androidx.palette:palette:1.0.0"
|
||||
implementation "androidx.recyclerview:recyclerview:1.1.0-alpha3"
|
||||
implementation "androidx.browser:browser:1.0.0"
|
||||
|
@ -148,6 +149,7 @@ dependencies {
|
|||
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
|
||||
implementation 'com.google.code.gson:gson:2.8.5'
|
||||
implementation 'com.jakewharton:butterknife:10.1.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
|
||||
|
||||
compileOnly 'com.google.auto.value:auto-value:1.1'
|
||||
|
@ -167,7 +169,7 @@ dependencies {
|
|||
implementation ('net.rdrei.android.dirchooser:library:3.0@aar') { transitive = true }
|
||||
|
||||
|
||||
implementation 'com.google.dagger:dagger:2.16'
|
||||
implementation 'com.google.dagger:dagger:2.22.1'
|
||||
annotationProcessor "com.google.dagger:dagger-compiler:2.16"
|
||||
compileOnly 'javax.annotation:jsr250-api:1.0'
|
||||
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.appbar.AppBarLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:theme="@style/ToolbarTheme" />
|
||||
android:theme="@style/ToolbarTheme"
|
||||
app:popupTheme="@style/ToolbarOptionMenuBackgroundTheme"/>
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
|
@ -46,6 +46,10 @@
|
|||
<item name="alertDialogTheme">@style/AlertDialogTheme</item>
|
||||
</style>
|
||||
|
||||
<style name="ToolbarOptionMenuBackgroundTheme" parent="Theme.MaterialComponents.DayNight">
|
||||
<item name="android:background">@color/rss_item_list_background</item>
|
||||
<item name="android:itemBackground">@color/rss_item_list_background</item>
|
||||
</style>
|
||||
|
||||
|
||||
<!-- https://stackoverflow.com/a/54751236 -->
|
||||
|
@ -61,6 +65,7 @@
|
|||
|
||||
|
||||
<style name="ToolbarTheme" parent="ThemeOverlay.MaterialComponents.Dark.ActionBar">
|
||||
<item name="android:background">@color/colorPrimary</item>
|
||||
<item name="android:textColor">@color/options_menu_item_text</item>
|
||||
</style>
|
||||
|
||||
|
|
Loading…
Reference in a new issue