Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev am: 1cdf4244f4

am: 465810c895

Change-Id: I6a9fa071f8e48c36cb0c9fdece919b6be0e8dc51
This commit is contained in:
Andrew Solovay
2017-07-07 19:17:12 +00:00
committed by android-build-merger

View File

@@ -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 {