mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-28 22:39:50 +00:00
3.4.0
- Added auto return to Home after importing rom and creating virtual machine in Rom store. - Improved image viewer. - Fixed Unknow display error in architecture in rom info if it is PowerPC architecture. - New setup wizard interface that automatically changes according to screen size. - New ID generator for virtual machine. - Added dialog when deleting virtual machine.
This commit is contained in:
parent
009ba90694
commit
bf11a28d60
25 changed files with 817 additions and 89 deletions
|
|
@ -8,6 +8,7 @@ import androidx.appcompat.app.AlertDialog;
|
|||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import android.content.ClipData;
|
||||
|
|
@ -32,6 +33,8 @@ import android.util.Log;
|
|||
import android.view.Display;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.webkit.WebView;
|
||||
import android.widget.ScrollView;
|
||||
|
|
@ -524,4 +527,13 @@ public class UIUtils {
|
|||
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);
|
||||
}
|
||||
}
|
||||
|
||||
public static void setLightStatusBar(boolean isEnable, Activity _activity) {
|
||||
Window window = _activity.getWindow();
|
||||
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||
|
||||
WindowCompat.getInsetsController(window, window.getDecorView())
|
||||
.setAppearanceLightStatusBars(isEnable);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue