Fix fullscreen on Android 12

This commit is contained in:
tehcneko committed 2022-01-23 20:54:33 +08:00
1 parent 8cf60e1fb2
commit 865aff4fde
5 files changed
+49 -102

No files matched your search

@@ -20,7 +20,6 @@ import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.WindowInsets;
import android.widget.LinearLayout;
import android.widget.SeekBar;
@@ -67,9 +66,4 @@ public class SeekBarPanel extends LinearLayout {
return true;
}
}
@Override
public WindowInsets onApplyWindowInsets(WindowInsets insets) {
return super.onApplyWindowInsets(insets.replaceSystemWindowInsets(insets.getSystemWindowInsetLeft(), 0, insets.getSystemWindowInsetRight(), insets.getSystemWindowInsetBottom()));
}
}