From ec91674d07ac1006ce128d27ec033ca64ca11908 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 16 Jun 2019 11:55:11 +0200 Subject: [PATCH] GameDetailsDialog: Show game ID and revision --- .../dolphinemu/dialogs/GameDetailsDialog.java | 4 ++ .../main/res/layout/dialog_game_details.xml | 42 ++++++++++++++++++- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/dialogs/GameDetailsDialog.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/dialogs/GameDetailsDialog.java index f991e685f3..abd9aa367c 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/dialogs/GameDetailsDialog.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/dialogs/GameDetailsDialog.java @@ -49,6 +49,8 @@ public final class GameDetailsDialog extends DialogFragment TextView textCountry = contents.findViewById(R.id.text_country); TextView textCompany = contents.findViewById(R.id.text_company); + TextView textGameId = contents.findViewById(R.id.text_game_id); + TextView textRevision = contents.findViewById(R.id.text_revision); FloatingActionButton buttonLaunch = contents.findViewById(R.id.button_launch); @@ -63,6 +65,8 @@ public final class GameDetailsDialog extends DialogFragment } textCountry.setText(country); textCompany.setText(gameFile.getCompany()); + textGameId.setText(gameFile.getGameId()); + textRevision.setText(Integer.toString(gameFile.getRevision())); buttonLaunch.setOnClickListener(view -> { diff --git a/Source/Android/app/src/main/res/layout/dialog_game_details.xml b/Source/Android/app/src/main/res/layout/dialog_game_details.xml index 86db18e487..f7f411cc6c 100644 --- a/Source/Android/app/src/main/res/layout/dialog_game_details.xml +++ b/Source/Android/app/src/main/res/layout/dialog_game_details.xml @@ -6,6 +6,7 @@ android:layout_width="match_parent" android:paddingStart="24dp" android:paddingEnd="24dp" + android:paddingBottom="24dp" android:transitionName="card_game"> + android:src="@drawable/ic_company"/> + + + + + + + +