Improve PC and game details dialogs

This commit is contained in:
Cameron Gutman 2020-06-11 20:36:59 -07:00
parent d704cb0b50
commit 1149002e0c
3 changed files with 11 additions and 3 deletions

View File

@ -434,8 +434,7 @@ public class AppView extends Activity implements AdapterFragmentCallbacks {
return true;
case VIEW_DETAILS_ID:
Dialog.displayDialog(AppView.this, getResources().getString(R.string.title_details),
getResources().getString(R.string.applist_details_id) + " " + app.app.getAppId(), false);
Dialog.displayDialog(AppView.this, getResources().getString(R.string.title_details), app.app.toString(), false);
return true;
case CREATE_SHORTCUT_ID:

View File

@ -69,9 +69,9 @@ public class ComputerDetails {
@Override
public String toString() {
StringBuilder str = new StringBuilder();
str.append("Name: ").append(name).append("\n");
str.append("State: ").append(state).append("\n");
str.append("Active Address: ").append(activeAddress).append("\n");
str.append("Name: ").append(name).append("\n");
str.append("UUID: ").append(uuid).append("\n");
str.append("Local Address: ").append(localAddress).append("\n");
str.append("Remote Address: ").append(remoteAddress).append("\n");

View File

@ -58,4 +58,13 @@ public class NvApp {
public boolean isInitialized() {
return this.initialized;
}
@Override
public String toString() {
StringBuilder str = new StringBuilder();
str.append("Name: ").append(appName).append("\n");
str.append("HDR: ").append(hdrSupported ? "Yes" : "No").append("\n");
str.append("ID: ").append(appId).append("\n");
return str.toString();
}
}