Skip to content

Commit

Permalink
updated strings
Browse files Browse the repository at this point in the history
  • Loading branch information
itszechs committed Dec 6, 2022
1 parent d5de976 commit 92db0e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/zechs/drive/stream/ui/code/DialogCode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DialogCode(
val authCode = codeText.editText!!.text.toString()

if (authCode.isEmpty()) {
showToast(context.getString(R.string.please_enter_auth_code))
showToast(context.getString(R.string.please_enter_auth_url))
} else {
onSubmitClickListener.invoke(authCode)
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/dialog_code.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
android:clickable="false"
android:focusable="false"
android:fontFamily="@font/roboto_medium"
android:text="@string/authorization_code"
android:text="@string/authorization_url"
android:textColor="@color/textColor"
android:textSize="21sp"
app:layout_constraintEnd_toEndOf="parent"
Expand Down Expand Up @@ -61,7 +61,7 @@
android:layout_marginStart="24dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="24dp"
android:hint="@string/authorization_code"
android:hint="@string/authorization_url_hint"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tvExample">
Expand Down
7 changes: 4 additions & 3 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
<string name="video">Video</string>
<string name="sign_in">Sign in</string>
<string name="enter_authorization_code">Enter authorization code?</string>
<string name="authorization_code">Authorization code</string>
<string name="authorization_url">Authorization url</string>
<string name="authorization_url_hint">Authorization url</string>
<string name="submit">Submit</string>
<string name="please_enter_auth_code">Please enter authorization code</string>
<string name="please_enter_auth_url">Please enter authorization url</string>
<string name="play_using">Play using</string>
<string name="new_version_available">Newer version of app is available. Click to download.</string>
<string name="authorization_code_example">Ex: http://127.0.0.1:53682/?code=4/0BX2XfWi1VC9Iadsaa1hIX80rd17crGFCgyHgR_8rwkrIRJJf18LlSGbBWeg0wbZJdEZ3tm3A</string>
<string name="important_note_message">Due to recent changes made by Google, it is no longer possible to direct to a page to directly copy authorization code.\n\nYou will need to copy the entire url from the browser address bar. This will page will not load and will show an error.\n\nPlease copy the entire url from the address bar and paste it in the dialog box.</string>
<string name="important_note_message">Due to recent changes made by Google, it is no longer possible to directly copy authorization code from the webpage after completion of OAuth Flow.\n\nYou will need to copy the entire url from the browser address bar. This page will not load and will show an error.\n\nPlease copy the entire url from the address bar and paste it in the dialog box.</string>
</resources>

0 comments on commit 92db0e7

Please sign in to comment.