summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andrew Solovay <asolovay@google.com> 2017-07-07 19:02:48 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-07-07 19:02:48 +0000
commit1cdf4244f45ed58546303e2a37a74e5db2f3409c (patch)
tree0a17ad3ca85d6501cce1ca9b2251f272774132fe
parent401b8907d0cc417dcd4e89174c6209dabd7e0996 (diff)
parent4d2089c58ad0928a86d700ffed95f780bbf37646 (diff)
Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev
-rw-r--r--core/java/android/app/ProgressDialog.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/app/ProgressDialog.java b/core/java/android/app/ProgressDialog.java
index 8ec9622ebe34..8a083ebcd7e9 100644
--- a/core/java/android/app/ProgressDialog.java
+++ b/core/java/android/app/ProgressDialog.java
@@ -42,8 +42,12 @@ import java.text.NumberFormat;
*
* <p>The progress range is 0 to {@link #getMax() max}.</p>
*
- * @deprecated Use a progress indicator such as ProgressBar inline inside of
- * an activity rather than using this modal dialog.
+ * @deprecated <code>ProgressDialog</code> 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 {@link android.widget.ProgressBar}, which can
+ * be embedded in your app's UI. Alternatively, you can use a
+ * <a href="/guide/topics/ui/notifiers/notifications.html">notification</a>
+ * to inform the user of the task's progress.
*/
@Deprecated
public class ProgressDialog extends AlertDialog {