From 7b86c22827c263c135cc59036d3d96d7667cdf40 Mon Sep 17 00:00:00 2001 From: uykek Date: Sat, 22 Aug 2020 15:32:58 +0200 Subject: [PATCH] Change font size of the CreateSudokuActivity's action bar title --- .../ui/CreateSudokuActivity.java | 4 +--- .../res/layout/activity_create_sudoku.xml | 20 +------------------ 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/CreateSudokuActivity.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/CreateSudokuActivity.java index 73e0adc..f5061d5 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/CreateSudokuActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/CreateSudokuActivity.java @@ -93,6 +93,7 @@ public class CreateSudokuActivity extends BaseActivity implements IFinalizeDialo Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); + getSupportActionBar().setTitle(getString(gameController.getGameType().getStringResID())); getSupportActionBar().setDisplayHomeAsUpEnabled(true); layout = (SudokuFieldLayout)findViewById(R.id.sudokuLayout); @@ -113,9 +114,6 @@ public class CreateSudokuActivity extends BaseActivity implements IFinalizeDialo specialButtonLayout.setButtons(p.x, gameController, keyboard, getFragmentManager(), orientation, CreateSudokuActivity.this, this, this); - viewName = (TextView) findViewById(R.id.gameModeText); - viewName.setText(getString(gameController.getGameType().getStringResID())); - gameController.notifyHighlightChangedListeners(); } diff --git a/app/src/main/res/layout/activity_create_sudoku.xml b/app/src/main/res/layout/activity_create_sudoku.xml index 4763ba5..652ae9a 100644 --- a/app/src/main/res/layout/activity_create_sudoku.xml +++ b/app/src/main/res/layout/activity_create_sudoku.xml @@ -24,25 +24,7 @@ android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" android:clipChildren="false" - app:popupTheme="@style/AppTheme.PopupOverlay" > - - - - - + app:popupTheme="@style/AppTheme.PopupOverlay" />