Skip to content

Commit

Permalink
refactor: remove FirefoxSnackbarWorkaround
Browse files Browse the repository at this point in the history
fixed in Firefox release version since years ago
  • Loading branch information
BrayanDSO authored and lukstbit committed Jan 16, 2024
1 parent 45a7e41 commit 8feab0b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 59 deletions.
6 changes: 0 additions & 6 deletions AnkiDroid/src/main/java/com/ichi2/anki/Reviewer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ import com.ichi2.anki.servicelayer.NoteService.toggleMark
import com.ichi2.anki.servicelayer.rescheduleCards
import com.ichi2.anki.servicelayer.resetCards
import com.ichi2.anki.snackbar.showSnackbar
import com.ichi2.anki.workarounds.FirefoxSnackbarWorkaround.handledLaunchFromWebBrowser
import com.ichi2.annotations.NeedsTest
import com.ichi2.audio.AudioRecordingController
import com.ichi2.audio.AudioRecordingController.Companion.generateTempAudioFile
Expand Down Expand Up @@ -184,11 +183,6 @@ open class Reviewer :
return
}
super.onCreate(savedInstanceState)
if (handledLaunchFromWebBrowser(intent, this)) {
this.setResult(RESULT_CANCELED)
finish()
return
}
colorPalette = findViewById(R.id.whiteboard_editor)
answerTimer = AnswerTimer(findViewById(R.id.card_time))
textBarNew = findViewById(R.id.new_number)
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion AnkiDroid/src/main/res/values/03-dialogs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
<string name="reschedule_card_dialog_new_card_warning">A new card is being rescheduled. Rescheduling also turns new cards into review cards. Use the ‘reposition card’ option to change a new card\'s position within the new queue</string>
<string name="reschedule_card_dialog_warning_ease_reset">Rescheduling also resets how the scheduler treats the card in the future (ease will be set to %d%%)</string>

<string name="firefox_workaround_launched_reviewer_opening_deck">Select the deck in your file manager or visit the about:downloads page to import it</string>
<string name="answering_error_title">Database error</string>
<string name="answering_error_message">Writing to the collection failed. The database could be corrupt or there may not to be enough empty space on disk.\n\nIf this happens more often, try checking the database, repairing the collection or restoring it from a backup. Touch “options” for that.\n\Or it could be an AnkiDroid bug as well; please report the error so that we can check this.</string>
<string name="answering_error_report">Report error</string>
Expand Down

0 comments on commit 8feab0b

Please sign in to comment.