2022-10-02 23:06:56 +02:00
|
|
|
package android.app;
|
|
|
|
|
|
2023-09-01 12:55:04 +02:00
|
|
|
import android.content.Context;
|
|
|
|
|
|
2023-09-19 17:37:14 +05:00
|
|
|
public class ProgressDialog extends AlertDialog {
|
|
|
|
|
|
|
|
|
|
public ProgressDialog(Context context) {
|
|
|
|
|
super(context, 0);
|
|
|
|
|
}
|
2023-09-01 12:55:04 +02:00
|
|
|
|
|
|
|
|
public ProgressDialog(Context context, int themeResId) {
|
|
|
|
|
super(context, themeResId);
|
|
|
|
|
}
|
2023-09-19 17:37:14 +05:00
|
|
|
|
|
|
|
|
public void setIndeterminate(boolean indeterminate) {}
|
2024-11-22 18:02:54 +01:00
|
|
|
|
2024-11-30 18:49:11 +01:00
|
|
|
public static ProgressDialog show(Context context, CharSequence title, CharSequence message) {
|
|
|
|
|
return show(context, title, message, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate) {
|
|
|
|
|
return show(context, title, message, indeterminate, false, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable) {
|
|
|
|
|
return show(context, title, message, indeterminate, cancelable, null);
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-22 18:02:54 +01:00
|
|
|
public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable, OnCancelListener cancelListener) {
|
|
|
|
|
return new ProgressDialog(context);
|
|
|
|
|
}
|
2022-10-02 23:06:56 +02:00
|
|
|
}
|