Skip to content

Commit

Permalink
v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fahim44 committed Feb 20, 2020
1 parent 9fe9d48 commit 4b63bda
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import androidx.annotation.ColorRes;
import androidx.annotation.DrawableRes;
import androidx.annotation.UiThread;
import androidx.appcompat.app.AlertDialog;
import androidx.core.content.ContextCompat;

Expand All @@ -22,6 +23,7 @@

import java.util.Objects;

@UiThread
public class FullScreenLoadingDialog {
private static FullScreenLoadingDialog instance;

Expand Down Expand Up @@ -87,15 +89,14 @@ public void show(Context context) {
.into(imageView);

spinKitView.setVisibility(View.GONE);
}
else {
} else {
spinKitView.setColor(ContextCompat.getColor(context, spinKitColor));
spinKitView.setIndeterminateDrawable(SpriteFactory.create(spinKitStyle.convertToLibStyle()));
}

dialog = builder.create();
Objects.requireNonNull(dialog.getWindow()).setBackgroundDrawable(
new ColorDrawable(ContextCompat.getColor(context,backgroundColor)));
new ColorDrawable(ContextCompat.getColor(context, backgroundColor)));
Objects.requireNonNull(dialog.getWindow()).setGravity(Gravity.CENTER);
dialog.show();
}
Expand Down

0 comments on commit 4b63bda

Please sign in to comment.