You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
33 lines
1.1 KiB
Java
33 lines
1.1 KiB
Java
package android.app;
|
|
|
|
import android.content.Context;
|
|
|
|
public class ProgressDialog extends AlertDialog {
|
|
|
|
public ProgressDialog(Context context) {
|
|
super(context, 0);
|
|
}
|
|
|
|
public ProgressDialog(Context context, int themeResId) {
|
|
super(context, themeResId);
|
|
}
|
|
|
|
public void setIndeterminate(boolean indeterminate) {}
|
|
|
|
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);
|
|
}
|
|
|
|
public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable, OnCancelListener cancelListener) {
|
|
return new ProgressDialog(context);
|
|
}
|
|
}
|