mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-30 15:29:51 +00:00
PHANTOM V2.5
PH2.5 (9)
This commit is contained in:
parent
050fb846f8
commit
e724a517a8
58 changed files with 3092 additions and 869 deletions
|
|
@ -75,14 +75,15 @@ public class AdapterRoms extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
|||
myHolder.textSize.setText(current.itemSize);
|
||||
myHolder.checkBox.setChecked(position == mSelectedItem);
|
||||
if (current.itemAvail) {
|
||||
myHolder.textAvail.setText("availability: available");
|
||||
myHolder.textAvail.setTextColor(Color.GREEN);
|
||||
} else if (!current.itemAvail) {
|
||||
myHolder.textAvail.setText("availability: unavailable");
|
||||
myHolder.textAvail.setTextColor(Color.RED);
|
||||
myHolder.checkBox.setEnabled(false);
|
||||
}
|
||||
if (current.itemAvail)
|
||||
if (FileUtils.fileValid(RomsManagerActivity.activity, AppConfig.maindirpath + current.itemPath)) {
|
||||
myHolder.checkBox.setEnabled(false);
|
||||
myHolder.textAvail.setTextColor(Color.BLUE);
|
||||
myHolder.textAvail.setText("(installed)");
|
||||
} else {
|
||||
myHolder.checkBox.setEnabled(true);
|
||||
myHolder.textAvail.setTextColor(Color.GREEN);
|
||||
myHolder.textAvail.setText("availability: available");
|
||||
}
|
||||
myHolder.checkBox.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
|
@ -96,6 +97,11 @@ public class AdapterRoms extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
|||
RomsManagerActivity.selectedIcon = current.itemIcon;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
myHolder.textAvail.setText("availability: unavailable");
|
||||
myHolder.textAvail.setTextColor(Color.RED);
|
||||
myHolder.checkBox.setEnabled(false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue