Prechádzať zdrojové kódy

Fix shadow behind the Expand Info icon (#5804)

Soitora 3 rokov pred
rodič
commit
d25707554e

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadService.kt

@@ -167,7 +167,7 @@ class DownloadService : Service() {
 
     private fun NetworkCapabilities.connectedToInternet(): Boolean {
         return this.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) &&
-                this.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)
+            this.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)
     }
 
     private fun NetworkCapabilities.connectedToWifi(): Boolean {

+ 16 - 0
app/src/main/res/xml/manga_summary_section_scene.xml

@@ -12,6 +12,14 @@
     </Transition>
 
     <ConstraintSet android:id="@+id/start">
+        <Constraint
+            android:id="@+id/manga_info_toggle_more_scrim"
+            android:layout_width="36sp"
+            android:layout_height="18sp"
+            motion:layout_constraintEnd_toEndOf="@+id/manga_summary_text"
+            motion:layout_constraintStart_toStartOf="@+id/manga_summary_text"
+            motion:layout_constraintBottom_toBottomOf="@+id/manga_summary_text"
+            android:visibility="visible" />
         <Constraint
             android:id="@+id/manga_info_toggle_more"
             android:layout_width="wrap_content"
@@ -79,6 +87,14 @@
             motion:layout_constraintBottom_toBottomOf="@+id/manga_summary_text"
             motion:layout_constraintStart_toStartOf="@+id/manga_summary_text"
             android:visibility="invisible" />
+        <Constraint
+            android:id="@+id/manga_info_toggle_more_scrim"
+            android:layout_width="36sp"
+            android:layout_height="18sp"
+            motion:layout_constraintEnd_toEndOf="@+id/manga_summary_text"
+            motion:layout_constraintStart_toStartOf="@+id/manga_summary_text"
+            motion:layout_constraintBottom_toBottomOf="@+id/manga_summary_text"
+            android:visibility="gone" />
         <Constraint
             android:id="@+id/manga_info_toggle_more"
             android:layout_width="wrap_content"