mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-12 01:21:09 -07:00
- 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:
parent
6501b54514
commit
21969090b1
5 changed files with 73 additions and 17 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue