mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-03 12:31:14 -08:00
Start of work on portrait mode / Made fragments abstract classes
This commit is contained in:
parent
cf0a25fdfc
commit
fb2bb5a4bc
18 changed files with 67 additions and 21 deletions
|
|
@ -3,6 +3,7 @@ package io.anuke.mindustry;
|
|||
import android.Manifest;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
|
|
@ -153,6 +154,16 @@ public class AndroidLauncher extends AndroidApplication{
|
|||
requestPermissions(perms.toArray(new String[perms.size()]), PERMISSION_REQUEST_CODE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beginForceLandscape() {
|
||||
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void endForceLandscape() {
|
||||
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
|
||||
}
|
||||
};
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue