Skip to content

Commit

Permalink
feat: support edge-to-edge for loading dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
aikrq committed Jan 2, 2025
1 parent 9ac89c5 commit 9256100
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/main/java/a/a/a/ZA.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

import android.app.Dialog;
import android.content.Context;
import android.view.Window;
import android.widget.TextView;

import androidx.core.view.WindowCompat;

import com.airbnb.lottie.LottieAnimationView;
import pro.sketchware.R;

Expand All @@ -20,6 +23,12 @@ public ZA(Context context) {
TextView tvProgress = findViewById(R.id.tv_progress);
tvProgress.setText(Helper.getResString(R.string.common_message_loading));
super.setCancelable(false);

Window window = getWindow();
if (window != null) {
window.setStatusBarColor(0);
WindowCompat.setDecorFitsSystemWindows(window, false);
}
}

public void cancelAnimation() {
Expand Down

0 comments on commit 9256100

Please sign in to comment.