mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-29 23:09:48 +00:00
Yorkshire Pudding
- Improved interface.
This commit is contained in:
parent
e4a940858c
commit
8580c88235
22 changed files with 100 additions and 76 deletions
|
|
@ -59,7 +59,6 @@ import com.vectras.vm.utils.DialogUtils;
|
|||
import com.vectras.vm.utils.FileUtils;
|
||||
import com.vectras.vm.utils.UIUtils;
|
||||
|
||||
import org.checkerframework.checker.units.qual.C;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
|
@ -473,7 +472,7 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
lineardisclaimer.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
DialogUtils.oneDialog(CustomRomActivity.this, getResources().getString(R.string.oops), getResources().getString(R.string.disclaimer_when_using_rom), getResources().getString(R.string.i_agree), true, R.drawable.verified_user_24px, true, null, null);
|
||||
DialogUtils.oneDialog(CustomRomActivity.this, getResources().getString(R.string.dont_miss_out), getResources().getString(R.string.disclaimer_when_using_rom), getResources().getString(R.string.i_agree), true, R.drawable.verified_user_24px, true, null, null);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ import com.vectras.vm.utils.PackageUtils;
|
|||
import com.vectras.vm.utils.UIUtils;
|
||||
import com.vectras.vm.utils.ZipUtils;
|
||||
|
||||
import org.checkerframework.checker.guieffect.qual.UI;
|
||||
import org.zeroturnaround.zip.FileSource;
|
||||
import org.zeroturnaround.zip.ZipEntrySource;
|
||||
import org.zeroturnaround.zip.ZipUtil;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ package com.vectras.vm;
|
|||
import static android.content.Intent.ACTION_OPEN_DOCUMENT;
|
||||
import static android.content.Intent.ACTION_VIEW;
|
||||
import static android.os.Build.VERSION.SDK_INT;
|
||||
|
||||
import com.google.android.material.progressindicator.LinearProgressIndicator;
|
||||
import com.termux.app.TermuxService;
|
||||
|
||||
import static com.vectras.vm.VectrasApp.getApp;
|
||||
|
|
@ -656,7 +658,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
+ activity.getResources()
|
||||
.getString(R.string.used)
|
||||
+ ")");
|
||||
ProgressBar progressBar = findViewById(R.id.progressBar);
|
||||
LinearProgressIndicator progressBar = findViewById(R.id.progressBar);
|
||||
progressBar.setMax((int) totalMemory);
|
||||
if (SDK_INT >= Build.VERSION_CODES.N) {
|
||||
progressBar.setProgress((int) usedMemory, true);
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import com.vectras.vm.R;
|
|||
public class DialogUtils {
|
||||
|
||||
public static void oneDialog(Activity _context, String _title, String _message, String _textPositiveButton, boolean _isicon, int _iconid, boolean _cancel, Runnable _onPositive, Runnable _onDismiss) {
|
||||
MaterialAlertDialogBuilder dialog = new MaterialAlertDialogBuilder(_context);
|
||||
MaterialAlertDialogBuilder dialog = new MaterialAlertDialogBuilder(_context, R.style.CenteredDialogTheme);
|
||||
dialog.setTitle(_title);
|
||||
dialog.setMessage(_message);
|
||||
if (_isicon) {
|
||||
|
|
@ -38,7 +38,7 @@ public class DialogUtils {
|
|||
dialog.show();
|
||||
}
|
||||
public static void twoDialog(Activity _context, String _title, String _message, String _textPositiveButton, String _textNegativeButton, boolean _isicon, int _iconid, boolean _cancel, Runnable _onPositive, Runnable _onNegative, Runnable _onDismiss) {
|
||||
MaterialAlertDialogBuilder dialog = new MaterialAlertDialogBuilder(_context);
|
||||
MaterialAlertDialogBuilder dialog = new MaterialAlertDialogBuilder(_context, R.style.CenteredDialogTheme);
|
||||
dialog.setTitle(_title);
|
||||
dialog.setMessage(_message);
|
||||
if (_isicon) {
|
||||
|
|
@ -68,7 +68,7 @@ public class DialogUtils {
|
|||
}
|
||||
|
||||
public static void threeDialog(Activity _context, String _title, String _message, String _textPositiveButton, String _textNegativeButton, String _textNeutralButton ,boolean _isicon, int _iconid, boolean _cancel, Runnable _onPositive, Runnable _onNegative, Runnable _onNeutral, Runnable _onDismiss) {
|
||||
MaterialAlertDialogBuilder dialog = new MaterialAlertDialogBuilder(_context);
|
||||
MaterialAlertDialogBuilder dialog = new MaterialAlertDialogBuilder(_context, R.style.CenteredDialogTheme);
|
||||
dialog.setTitle(_title);
|
||||
dialog.setMessage(_message);
|
||||
if (_isicon) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue