Slightly optimise greyed out apk/app views

This commit is contained in:
Daniel Martí 2013-08-30 14:35:15 +02:00
parent eb1d21f827
commit 19583c2b75

View File

@ -110,9 +110,11 @@ abstract public class AppListAdapter extends BaseAdapter {
}
// Disable it all if it isn't compatible...
View[] views = { convertView, status, summary, license, name };
for (View view : views) {
view.setEnabled(app.compatible);
if (!app.compatible) {
View[] views = { convertView, status, summary, license, name };
for (View view : views) {
view.setEnabled(false);
}
}
return convertView;