mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-30 23:39:54 +00:00
Doughnut
This commit is contained in:
parent
5604b1fdf7
commit
a1e7f2336c
15 changed files with 186 additions and 23 deletions
|
|
@ -219,6 +219,23 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
startActivityForResult(intent, 1001);
|
||||
}
|
||||
});
|
||||
|
||||
icon.setOnLongClickListener((View.OnLongClickListener) v -> {
|
||||
if (!Objects.requireNonNull(icon.getText()).toString().isEmpty()) {
|
||||
icon.setText("");
|
||||
VectrasApp.setIconWithName(ivIcon, Objects.requireNonNull(title.getText()).toString());
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
iconLayout.setOnLongClickListener((View.OnLongClickListener) v -> {
|
||||
if (!Objects.requireNonNull(icon.getText()).toString().isEmpty()) {
|
||||
icon.setText("");
|
||||
VectrasApp.setIconWithName(ivIcon, Objects.requireNonNull(title.getText()).toString());
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
drive.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
|
@ -235,6 +252,7 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
startActivityForResult(intent, 1002);
|
||||
}
|
||||
});
|
||||
|
||||
driveLayout.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
|
@ -265,6 +283,20 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
}
|
||||
});
|
||||
|
||||
drive.setOnLongClickListener((View.OnLongClickListener) v -> {
|
||||
if (!Objects.requireNonNull(drive.getText()).toString().isEmpty()) {
|
||||
drive.setText("");
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
driveLayout.setOnLongClickListener((View.OnLongClickListener) v -> {
|
||||
if (!Objects.requireNonNull(drive.getText()).toString().isEmpty()) {
|
||||
drive.setText("");
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
View.OnClickListener cdromClickListener = new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
|
@ -330,6 +362,20 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
cdrom.setOnClickListener(cdromClickListener);
|
||||
cdromLayout.setOnClickListener(cdromClickListener);
|
||||
|
||||
cdrom.setOnLongClickListener((View.OnLongClickListener) v -> {
|
||||
if (!Objects.requireNonNull(cdrom.getText()).toString().isEmpty()) {
|
||||
cdrom.setText("");
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
cdromLayout.setOnLongClickListener((View.OnLongClickListener) v -> {
|
||||
if (!Objects.requireNonNull(cdrom.getText()).toString().isEmpty()) {
|
||||
cdrom.setText("");
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
addRomBtn = findViewById(R.id.addRomBtn);
|
||||
addRomBtn.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
|
@ -450,6 +496,14 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
}
|
||||
});
|
||||
|
||||
ivIcon.setOnLongClickListener((View.OnLongClickListener) v -> {
|
||||
if (!Objects.requireNonNull(icon.getText()).toString().isEmpty()) {
|
||||
icon.setText("");
|
||||
VectrasApp.setIconWithName(ivIcon, title.getText().toString());
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
modify = getIntent().getBooleanExtra("MODIFY", false);
|
||||
if (modify) {
|
||||
created = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue