Skip to content Skip to sidebar Skip to footer

Showing Two Progressdialog Instead One

When I use samsung galaxy mini 4.4 I see two progressDialog(picture below). When I use another device - everething is okay if (progressDialog == null) { progressDialog = n

Solution 1:

I didn't found reason, but I found a way to avoid this. Need to create a dialog in the following manner:

newProgressDialog(newContextThemeWrapper(getActivity(), R.style.ProgressDialog));

R.style.ProgressDialog - your theme

Solution 2:

I changed ProgressDialog's style from my custom style to Theme_AppCompat_Dialog

new ProgressDialog(mContext, R.style.Theme_AppCompat_Dialog)

This solved the issue, but couldn't find out the reason for the problem.

Post a Comment for "Showing Two Progressdialog Instead One"