Skip to content

Commit e03bf68

Browse files
SUPERCILEXsamtstern
authored andcommitted
Fix custom style not being applied to KickOffActivity progress dialogs (#589)
* Fix custom style not being applied to `KickOffActivity` progress dialogs Signed-off-by: Alex Saveau <[email protected]> * Use native `ContextThemeWrapper` instead Signed-off-by: Alex Saveau <[email protected]>
1 parent 15d95fd commit e03bf68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

auth/src/main/java/com/firebase/ui/auth/ui/FragmentHelper.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import android.os.Bundle;
77
import android.support.annotation.RestrictTo;
88
import android.support.v4.app.Fragment;
9+
import android.view.ContextThemeWrapper;
910

1011
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
1112
public class FragmentHelper extends BaseHelper {
@@ -30,7 +31,9 @@ public void finish(int resultCode, Intent intent) {
3031
@Override
3132
public void showLoadingDialog(String message) {
3233
dismissDialog();
33-
mProgressDialog = ProgressDialog.show(mFragment.getContext(), "", message, true);
34+
ContextThemeWrapper context =
35+
new ContextThemeWrapper(mFragment.getContext(), getFlowParams().themeId);
36+
mProgressDialog = ProgressDialog.show(context, "", message, true);
3437
}
3538

3639
public void startIntentSenderForResult(IntentSender sender, int requestCode)

0 commit comments

Comments
 (0)