- Updated getDisplayMetrics to make use of compilation API level 30.

- The display width is now properly took into account.
- Introduced a ignore notch setting. (design not finished)
- Use proper split screen detection.
- Proper resizing for minecraft view.
- Removed inversion of width and height when the height is greater than the height.
This commit is contained in:
SerpentSpirale 2021-01-29 16:46:26 +01:00
parent 6501b54514
commit 21969090b1
5 changed files with 73 additions and 17 deletions

View file

@ -11,6 +11,7 @@ import java.io.*;
import com.google.gson.*;
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.DEFAULT_PREF;
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_IGNORE_NOTCH;
public class MainActivity extends BaseMainActivity {
private ControlLayout mControlLayout;
@ -23,6 +24,8 @@ public class MainActivity extends BaseMainActivity {
super.onCreate(savedInstanceState);
initLayout(R.layout.main_with_customctrl);
Tools.ignoreNotch(PREF_IGNORE_NOTCH, this);
mClickListener = new View.OnClickListener(){
@Override
public void onClick(View view) {