Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
xenonnn4w committed Aug 15, 2024
1 parent eea4335 commit f70e66f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ class DeckPickerWidgetConfig : AnkiActivity(), DeckSelectionListener {

if (isDeckAlreadySelected) {
// Show snackbar if the deck is already selected
// TODO: Eventually, ensure that the user can't select a deck that is already selected.
val message = getString(R.string.deck_already_selected_message)
showSnackbar(message)
return
Expand Down
6 changes: 3 additions & 3 deletions AnkiDroid/src/main/res/xml/widget_provider_deck_picker.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--The width(W) and height(H) constraints are set as per the following sizes
3 W * 2H Default
4 W * 5H Size we maximum width
3 W * 1H Size with minimum height
3W * 2H Default
4W * 5H Size we maximum width
3W * 1H Size with minimum height
JPG type of file used in previewImage property because the SVG format is not supported on all devices. -->

<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down

0 comments on commit f70e66f

Please sign in to comment.