From eb6fa74151447449be286fb71d327ce0b665a166 Mon Sep 17 00:00:00 2001 From: Gongxter Date: Mon, 29 Feb 2016 15:16:11 +0100 Subject: [PATCH] scrren keep on fixed --- app/app.iml | 6 ------ .../org/secuso/privacyfriendlysudoku/ui/GameActivity.java | 2 ++ app/src/main/res/layout/welcome_dialog.xml | 8 ++++++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/app.iml b/app/app.iml index 0bf93b8..74d7e06 100644 --- a/app/app.iml +++ b/app/app.iml @@ -67,11 +67,9 @@ - - @@ -82,19 +80,15 @@ - - - - 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 a840875..b2931a9 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java @@ -22,6 +22,7 @@ import android.view.Gravity; import android.view.Menu; import android.view.MenuItem; import android.view.View; +import android.view.WindowManager; import android.widget.Button; import android.widget.LinearLayout; import android.widget.RatingBar; @@ -65,6 +66,7 @@ public class GameActivity extends AppCompatActivity implements NavigationView.On super.onCreate(savedInstanceState); + getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this); GameType gameType = GameType.Unspecified; GameDifficulty gameDifficulty = GameDifficulty.Unspecified; diff --git a/app/src/main/res/layout/welcome_dialog.xml b/app/src/main/res/layout/welcome_dialog.xml index 08f5912..9676aff 100644 --- a/app/src/main/res/layout/welcome_dialog.xml +++ b/app/src/main/res/layout/welcome_dialog.xml @@ -1,5 +1,8 @@ - + - \ No newline at end of file + + \ No newline at end of file