Add visual feeback for offline machines and running games

This commit is contained in:
Cameron Gutman
2014-11-08 12:51:07 -08:00
parent 68c1aaf433
commit 406d26ec1c
7 changed files with 81 additions and 17 deletions

View File

@@ -152,4 +152,16 @@ public class AppGridAdapter extends GenericGridAdapter<AppView.AppObject> {
// Return false to use the app's toString method
return false;
}
@Override
public boolean populateOverlayView(ImageView overlayView, AppView.AppObject obj) {
if (obj.app.getIsRunning()) {
// Show the play button overlay
overlayView.setImageResource(R.drawable.play);
return true;
}
// No overlay
return false;
}
}