Fix incorrect incompatible greying due to view reuse
This commit is contained in:
parent
3c02e3ccc1
commit
5329e4431a
@ -138,11 +138,9 @@ public class AppDetails extends ListActivity {
|
||||
}
|
||||
|
||||
// Disable it all if it isn't compatible...
|
||||
if (!apk.compatible) {
|
||||
View[] views = { v, version, status, size, buildtype, added };
|
||||
for (View view : views) {
|
||||
view.setEnabled(false);
|
||||
}
|
||||
View[] views = { v, version, status, size, buildtype, added };
|
||||
for (View view : views) {
|
||||
view.setEnabled(apk.compatible);
|
||||
}
|
||||
|
||||
return v;
|
||||
|
@ -91,11 +91,9 @@ public class AppListAdapter extends BaseAdapter {
|
||||
}
|
||||
|
||||
// Disable it all if it isn't compatible...
|
||||
if (!app.compatible) {
|
||||
View[] views = { v, status, summary, license, name };
|
||||
for (View view : views) {
|
||||
view.setEnabled(false);
|
||||
}
|
||||
View[] views = { v, status, summary, license, name };
|
||||
for (View view : views) {
|
||||
view.setEnabled(app.compatible);
|
||||
}
|
||||
|
||||
return v;
|
||||
|
Loading…
x
Reference in New Issue
Block a user