diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java index 6c1d319..1655b24 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java @@ -95,7 +95,7 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig TextView viewName ; RatingBar ratingBar; SaveLoadStatistics statistics = new SaveLoadStatistics(this); - WinDialog dialog = null; + WinDialog dialog; private boolean gameSolved = false; private boolean startGame = true; diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/WinDialog.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/WinDialog.java index a94e085..da09e34 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/WinDialog.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/WinDialog.java @@ -53,7 +53,6 @@ public void setParam(String timeString, String hintString, boolean isNewBestTime @Override protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); ((TextView)findViewById(R.id.win_hints)).setText(hintString); diff --git a/app/src/main/res/drawable-night-v21/ic_trophy_black_48dp.xml b/app/src/main/res/drawable-night-v21/ic_trophy_black_48dp.xml deleted file mode 100644 index 844b657..0000000 --- a/app/src/main/res/drawable-night-v21/ic_trophy_black_48dp.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable-v21/ic_trophy_black_48dp.xml b/app/src/main/res/drawable-v21/ic_trophy_black_48dp.xml deleted file mode 100644 index 844b657..0000000 --- a/app/src/main/res/drawable-v21/ic_trophy_black_48dp.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/layout/win_screen_layout.xml b/app/src/main/res/layout/win_screen_layout.xml index a64279a..d321fb1 100644 --- a/app/src/main/res/layout/win_screen_layout.xml +++ b/app/src/main/res/layout/win_screen_layout.xml @@ -4,10 +4,13 @@ android:layout_width="fill_parent" android:layout_height="320dp" android:orientation="vertical" android:background="?attr/lightestBackGround" - android:layout_gravity="center"> + android:layout_gravity="center" + android:layout_centerVertical="true" + android:layout_centerHorizontal="true">