ankidroid / ankidroid/Anki-Android

Fix ProgressDialog deprecation

Open
#12,140 3 comments 0 reactions 0 assignees View on GitHub
Keep Open
Dominant language
Kotlin
Stars
11.8k
Forks
2.9k
Avg merge
2d 3h
Merged PRs (30d)
171

Description

There isn't a Material Progress Dialog. Perhaps for the same reason they deprecated progress dialog on Android O.

> This class was deprecated in API level 26. ProgressDialog is a modal dialog, which prevents the user from interacting with the app. Instead of using this class, you should use a progress indicator like ProgressBar, which can be embedded in your app's UI. Alternatively, you can use a notification to inform the user of the task's progress.

(https://developer.android.com/reference/android/app/ProgressDialog)

We use ProgressDialog on other places of the code and would be nice to have an issue to discuss what to do on each case

_Originally posted by @BrayanDSO in https://github.com/ankidroid/Anki-Android/pull/12137#discussion_r953150673_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.