- Better implementation of Tools.ignoreNotch to work with all activities.

This commit is contained in:
SerpentSpirale 2021-01-31 18:57:27 +01:00
parent 4ebf4cde5c
commit 12009282d4
4 changed files with 10 additions and 8 deletions

View file

@ -66,7 +66,6 @@ import net.kdt.pojavlaunch.prefs.LauncherPreferences;
import net.kdt.pojavlaunch.utils.JREUtils;
import net.kdt.pojavlaunch.utils.LocaleUtils;
import net.kdt.pojavlaunch.value.MinecraftAccount;
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_IGNORE_NOTCH;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;
import org.apache.commons.compress.compressors.xz.XZCompressorInputStream;
@ -99,8 +98,7 @@ public class PojavLoginActivity extends BaseActivity
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState); // false);
Tools.ignoreNotch(PREF_IGNORE_NOTCH, this);
Tools.updateWindowSize(this);
/*
ControlData.pixelOf2dp = (int) Tools.dpToPx(2);