Android: Remove version from toolbar in game list

Not enough space to show it in portrait mode anyway.
This commit is contained in:
Connor McLaughlin 2021-03-21 01:17:09 +10:00
parent 02e8c7de58
commit f68836206b
3 changed files with 3 additions and 12 deletions

View File

@ -49,15 +49,6 @@ public class MainActivity extends AppCompatActivity {
private boolean mHasExternalStoragePermissions = 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() {
return mGameList;
}
@ -142,7 +133,6 @@ public class MainActivity extends AppCompatActivity {
setContentView(R.layout.activity_main);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setTitle(getTitleString());
findViewById(R.id.fab_add_game_directory).setOnClickListener(new View.OnClickListener() {
@Override

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -18,9 +18,10 @@
<ImageView
android:id="@+id/imageView2"
android:layout_width="64dp"
android:layout_width="32dp"
android:layout_height="match_parent"
app:srcCompat="@mipmap/ic_launcher_foreground" />
android:layout_marginStart="16dp"
app:srcCompat="@drawable/duck" />
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"