Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: show snackbar if no data connection in shared deck download #17720

Merged
merged 1 commit into from
Jan 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,11 @@ open class DeckPicker :
)

fun openAnkiWebSharedDecks() {
if (!NetworkUtils.isOnline) {
showSnackbar(R.string.check_network)
david-allison marked this conversation as resolved.
Show resolved Hide resolved
Timber.d("DeckPicker:: No network, Shared deck download failed")
return
}
val intent = Intent(this, SharedDecksActivity::class.java)
startActivity(intent)
}
Expand Down
Loading