Skip to content

Commit

Permalink
Fix shadow behind the Expand Info icon (#5804)
Browse files Browse the repository at this point in the history
  • Loading branch information
Soitora authored Aug 27, 2021
1 parent 38df44e commit d257075
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
16 changes: 16 additions & 0 deletions app/src/main/res/xml/manga_summary_section_scene.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit d257075

Please sign in to comment.