Fix compatibility issue in styles_custom.xml (#201)

* Adding indeterminateTintMode="src_in"
* Add a new ThemeCustomNotTransparentto change the color of ProgressBar
This commit is contained in:
john2020star
2020-04-30 18:36:26 +08:00
committed by GitHub
parent c7557d80bb
commit be1fae956b
3 changed files with 12 additions and 3 deletions
@@ -85,7 +85,7 @@ public class DialogUtils {
* @param formatArgs the format arguments for the message id
*/
private static ProgressDialog createProgressDialog(boolean spinner, final Context context, int messageId, DialogInterface.OnCancelListener onCancelListener, Object... formatArgs) {
final ProgressDialog progressDialog = new ProgressDialog(context);
final ProgressDialog progressDialog = new ProgressDialog(context, R.style.ThemeCustomNotTransparent);
progressDialog.setCancelable(true);
progressDialog.setCanceledOnTouchOutside(false);
progressDialog.setIcon(R.drawable.ic_dialog_info_24dp);