Fix shadow behind the Expand Info icon (#5804)

This commit is contained in:
Soitora 2021-08-27 21:34:41 +02:00 committed by GitHub
parent 38df44ef4b
commit d25707554e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

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

View File

@ -12,6 +12,14 @@
</Transition> </Transition>
<ConstraintSet android:id="@+id/start"> <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 <Constraint
android:id="@+id/manga_info_toggle_more" android:id="@+id/manga_info_toggle_more"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -79,6 +87,14 @@
motion:layout_constraintBottom_toBottomOf="@+id/manga_summary_text" motion:layout_constraintBottom_toBottomOf="@+id/manga_summary_text"
motion:layout_constraintStart_toStartOf="@+id/manga_summary_text" motion:layout_constraintStart_toStartOf="@+id/manga_summary_text"
android:visibility="invisible" /> 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 <Constraint
android:id="@+id/manga_info_toggle_more" android:id="@+id/manga_info_toggle_more"
android:layout_width="wrap_content" android:layout_width="wrap_content"