mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-19 06:45:39 +00:00
Android: Remove version from toolbar in game list
Not enough space to show it in portrait mode anyway.
This commit is contained in:
parent
02e8c7de58
commit
f68836206b
|
@ -49,15 +49,6 @@ public class MainActivity extends AppCompatActivity {
|
||||||
private boolean mHasExternalStoragePermissions = false;
|
private boolean mHasExternalStoragePermissions = false;
|
||||||
private boolean mIsShowingGameGrid = false;
|
private boolean mIsShowingGameGrid = false;
|
||||||
|
|
||||||
private static String getTitleString() {
|
|
||||||
String scmVersion = AndroidHostInterface.getScmVersion();
|
|
||||||
final int gitHashPos = scmVersion.indexOf("-g");
|
|
||||||
if (gitHashPos > 0)
|
|
||||||
scmVersion = scmVersion.substring(0, gitHashPos);
|
|
||||||
|
|
||||||
return String.format("DuckStation %s", scmVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
public GameList getGameList() {
|
public GameList getGameList() {
|
||||||
return mGameList;
|
return mGameList;
|
||||||
}
|
}
|
||||||
|
@ -142,7 +133,6 @@ public class MainActivity extends AppCompatActivity {
|
||||||
setContentView(R.layout.activity_main);
|
setContentView(R.layout.activity_main);
|
||||||
Toolbar toolbar = findViewById(R.id.toolbar);
|
Toolbar toolbar = findViewById(R.id.toolbar);
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
getSupportActionBar().setTitle(getTitleString());
|
|
||||||
|
|
||||||
findViewById(R.id.fab_add_game_directory).setOnClickListener(new View.OnClickListener() {
|
findViewById(R.id.fab_add_game_directory).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
BIN
android/app/src/main/res/drawable/duck.png
Normal file
BIN
android/app/src/main/res/drawable/duck.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
|
@ -18,9 +18,10 @@
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView2"
|
android:id="@+id/imageView2"
|
||||||
android:layout_width="64dp"
|
android:layout_width="32dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:srcCompat="@mipmap/ic_launcher_foreground" />
|
android:layout_marginStart="16dp"
|
||||||
|
app:srcCompat="@drawable/duck" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.Toolbar
|
<androidx.appcompat.widget.Toolbar
|
||||||
android:id="@+id/toolbar"
|
android:id="@+id/toolbar"
|
||||||
|
|
Loading…
Reference in a new issue