OpenSubtitles: remove login

This commit is contained in:
Nicolas Pomepuy 2024-11-21 13:54:19 +01:00 committed by Duncan McNamara
parent 45ef0bb516
commit 0b0ee58f90
2 changed files with 3 additions and 2 deletions

View File

@ -716,7 +716,7 @@
<string name="popup_playback">Playing in a Pop-Up window</string> <string name="popup_playback">Playing in a Pop-Up window</string>
<string name="popup_expand">Expand video</string> <string name="popup_expand">Expand video</string>
<string name="download_subtitles">Download subtitles</string> <string name="download_subtitles">Download subtitles</string>
<string name="powered_opensubtitles">Powered by OpenSubtitles. Remaining downloads : %s</string> <string name="powered_opensubtitles">Powered by OpenSubtitles</string>
<string name="open_subtitles_not_logged_in">You are not logged into OpenSubtitles\nLogging in will grant you access to more downloads</string> <string name="open_subtitles_not_logged_in">You are not logged into OpenSubtitles\nLogging in will grant you access to more downloads</string>
<string name="open_subtitles_logged_in">Logged in as %1$s</string> <string name="open_subtitles_logged_in">Logged in as %1$s</string>
<string name="open_subtitles_limits">You have %1$s remaining downloads out of %2$s. Your limit will be reset at %3$s.</string> <string name="open_subtitles_limits">You have %1$s remaining downloads out of %2$s. Your limit will be reset at %3$s.</string>

View File

@ -53,7 +53,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:text="@{@string/powered_opensubtitles(viewmodel.observableLimit.get().getRemainingText())}" android:text="@string/powered_opensubtitles"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/sub_download_history" app:layout_constraintTop_toBottomOf="@+id/sub_download_history"
@ -85,6 +85,7 @@
android:focusable="true" android:focusable="true"
android:padding="8dp" android:padding="8dp"
android:selected="@{state == state.Login}" android:selected="@{state == state.Login}"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_account" /> app:srcCompat="@drawable/ic_account" />