|
|
|
|
@ -33,11 +33,7 @@ public class Notify { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void progress(Context context) { |
|
|
|
|
progress(context, false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void progress(Context context, boolean dim) { |
|
|
|
|
dismiss(); get().create(context, dim); |
|
|
|
|
dismiss(); get().create(context); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void dismiss() { |
|
|
|
|
@ -47,11 +43,10 @@ public class Notify { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void create(Context context, boolean dim) { |
|
|
|
|
private void create(Context context) { |
|
|
|
|
ViewProgressBinding binding = ViewProgressBinding.inflate(LayoutInflater.from(context)); |
|
|
|
|
mDialog = new MaterialAlertDialogBuilder(context).setView(binding.getRoot()).create(); |
|
|
|
|
mDialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent); |
|
|
|
|
mDialog.getWindow().setDimAmount(dim ? 0.5f : 0); |
|
|
|
|
mDialog.show(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|