Skip to content

Commit d24a184

Browse files
thedroiddivlukstbit
authored andcommitted
cleanup: remove unused progressDialog variable
1 parent 8cc859b commit d24a184

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,6 @@ open class DeckPicker :
261261
private var shortAnimDuration = 0
262262
private lateinit var deckPickerContent: RelativeLayout
263263

264-
// TODO: Encapsulate ProgressDialog within a class to limit the use of deprecated functionality
265-
@Suppress("Deprecation")
266-
private var progressDialog: android.app.ProgressDialog? = null
267-
268264
private var studyoptionsFrame: View? = null // not lateInit - can be null
269265

270266
@VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
@@ -1528,13 +1524,6 @@ open class DeckPicker :
15281524
WidgetStatus.updateInBackground(this@DeckPicker)
15291525
}
15301526

1531-
override fun onDestroy() {
1532-
super.onDestroy()
1533-
if (progressDialog != null && progressDialog!!.isShowing) {
1534-
progressDialog!!.dismiss()
1535-
}
1536-
}
1537-
15381527
/**
15391528
* Performs a sync if the conditions are met, e.g. user is logged in, there are changes,
15401529
* and auto sync is enabled.

0 commit comments

Comments
 (0)