Pārlūkot izejas kodu

Add ripple effect to filter nav view

len 8 gadi atpakaļ
vecāks
revīzija
d180631877

+ 1 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseActivity.kt

@@ -12,6 +12,7 @@ abstract class BaseActivity : AppCompatActivity(), ActivityMixin {
     override fun getActivity() = this
 
     var resumed = false
+        private set
 
     override fun onResume() {
         super.onResume()

+ 1 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseRxActivity.kt

@@ -26,6 +26,7 @@ abstract class BaseRxActivity<P : BasePresenter<*>> : NucleusAppCompatActivity<P
     override fun getActivity() = this
 
     var resumed = false
+        private set
 
     override fun onResume() {
         super.onResume()

+ 1 - 1
app/src/main/res/layout/navigation_view_checkbox.xml

@@ -5,7 +5,7 @@
     android:layout_height="?attr/listPreferredItemHeightSmall"
     android:paddingLeft="?attr/listPreferredItemPaddingLeft"
     android:paddingRight="?attr/listPreferredItemPaddingRight"
-    android:foreground="?attr/selectableItemBackground"
+    android:background="?attr/selectableItemBackground"
     android:focusable="true">
 
     <CheckBox

+ 1 - 1
app/src/main/res/layout/navigation_view_checkedtext.xml

@@ -5,7 +5,7 @@
     android:layout_height="?attr/listPreferredItemHeightSmall"
     android:paddingLeft="?attr/listPreferredItemPaddingLeft"
     android:paddingRight="?attr/listPreferredItemPaddingRight"
-    android:foreground="?attr/selectableItemBackground"
+    android:background="?attr/selectableItemBackground"
     android:focusable="true">
 
     <CheckedTextView

+ 1 - 1
app/src/main/res/layout/navigation_view_radio.xml

@@ -5,7 +5,7 @@
     android:layout_height="?attr/listPreferredItemHeightSmall"
     android:paddingLeft="?attr/listPreferredItemPaddingLeft"
     android:paddingRight="?attr/listPreferredItemPaddingRight"
-    android:foreground="?attr/selectableItemBackground"
+    android:background="?attr/selectableItemBackground"
     android:focusable="true">
 
     <RadioButton