Add new activity for creating custom sudokus

This commit is contained in:
uykek 2020-06-24 19:02:35 +02:00
parent 0f5ef95c01
commit 9b9670c965
2 changed files with 27 additions and 0 deletions

View file

@ -35,6 +35,11 @@
android:label="@string/Sudoku"
android:theme="@style/AppTheme.NoActionBar">
</activity>
<activity
android:name="org.secuso.privacyfriendlysudoku.ui.CreateSudokuActivity"
android:label="@string/Sudoku"
android:theme="@style/AppTheme.NoActionBar">
</activity>
<activity
android:name="org.secuso.privacyfriendlysudoku.ui.SettingsActivity"
android:label="@string/title_activity_settings"

View file

@ -0,0 +1,22 @@
package org.secuso.privacyfriendlysudoku.ui;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.WindowManager;
import org.secuso.privacyfriendlysudoku.ui.view.R;
public class CreateSudokuActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
if(sharedPref.getBoolean("pref_keep_screen_on", true)) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
}
setContentView(R.layout.activity_game_view);
}
}