Commit graph

176 commits

Author SHA1 Message Date
ErikWaegerle
cafb8cb10f Adjusting the SettingsActivity
1.) Inserting the license
2.) Replace the PreferenceScreen with SettingsFragement
3.) Modify the method onCreatePreferences() in the class SettingsFragement to fix a bug when calling the SettingsActivity the first time the app is started.
2020-08-29 13:36:46 +02:00
ErikWaegerle
aea11a0f64 Customizing the MainActivity
delete the import of the old SettingsActivity.
2020-08-28 23:28:42 +02:00
ErikWaegerle
c1688ea6a8 Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0 2020-08-25 16:21:54 +02:00
ErikWaegerle
4f8b31ce17 Extension of the GameActivity
adjust the different cases of deeplinking.
Link with scheme "https" was extended.
2020-08-25 13:39:24 +02:00
uykek
f648e0ec88 Label each custom sudoku displayed in the LoadGameActivity as such 2020-08-24 17:00:30 +02:00
uykek
ec40f340e6 Fix bug that caused navigation bar item "import sudoku" to be selected instead of "main menu" after cancelling the ImportBoardDialog in the MainActivity. 2020-08-23 16:59:23 +02:00
uykek
8780dcf640 Fix regex used in the DailySudoku class 2020-08-23 10:12:58 +02:00
ErikWaegerle
cb3e20966d Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2020-08-22 16:52:09 +02:00
uykek
7b86c22827 Change font size of the CreateSudokuActivity's action bar title 2020-08-22 15:32:58 +02:00
uykek
762d7d19a2 Add back button to CreateSudokuActivity 2020-08-22 15:20:41 +02:00
uykek
07552a1089 Implement functionality of 'import' button in CreateSudokuActivity 2020-08-22 15:05:23 +02:00
ErikWaegerle
5fd14d86dc Upgrade the SettingsActivity to the PreferenceFragmentCompat.
Old SettingsActivity was deleted and replaced.
This upgrade fixes the bugs with DarkMode.
2020-08-20 19:29:17 +02:00
ErikWaegerle
c6371e700f Adjust the MainActivity for "new" SettingsActivity. 2020-08-20 19:16:17 +02:00
ErikWaegerle
1d4041f6e5 Delete items in GameActivity
deleted because no longer needed
2020-08-20 19:14:42 +02:00
uykek
1bf2c9ec7f Replace 'note toggle' button in CreateSudokuActivity with 'import' button 2020-08-19 19:32:27 +02:00
uykek
22e32c13dc Fix bug that caused "continue" button in MainActivity to be enabled as long as there is a dailysudoku saved to the device of the user (even if there are no regular sudokus to continue) 2020-08-18 16:58:01 +02:00
ErikWaegerle
ac40dab71d Comment the AboutActivity 2020-08-10 20:16:42 +02:00
ErikWaegerle
5f1d47facf Comment the SettingsActivity 2020-08-10 20:12:03 +02:00
ErikWaegerle
798c970e3f Comment the DailySudokuActivity 2020-08-10 19:59:34 +02:00
uykek
f6948f8aeb Add comments to the CreateSudokuSpecialButtonLayout and SudokuSpecialButtonLayout class 2020-08-10 11:53:49 +02:00
uykek
6f14b1fffd Add license to all classes that did not have one yet 2020-08-10 11:19:27 +02:00
uykek
d0b18900b0 Update version number of license above the classes containing one 2020-08-10 10:57:54 +02:00
uykek
f39d614579 Add comments and make a few changes to the DailySudokuActivity 2020-08-10 10:24:38 +02:00
uykek
b761d5fb12 Add comments regarding some of the changes in the GameActivity and the MainActivity 2020-08-09 18:35:58 +02:00
uykek
c57e753a26 Add JavaDocs and comments to the DailySudoku and DailySudokuColumns classes 2020-08-09 18:26:17 +02:00
uykek
a0e15e7508 Add JavaDocs and a few comments to some of the changed controller classes 2020-08-09 09:44:31 +02:00
uykek
98dc83a6c9 Add JavaDocs to CreateSudokuActivity 2020-08-04 09:02:51 +02:00
uykek
295c35710b Modify the parameters of the 'verify' method in CreateSudokuActivity and alter the method so that it catches IllegalArgumentExceptions thrown by the 'parseFixedValues' method of the GameInfoContainer class. 2020-08-04 08:56:07 +02:00
uykek
6e638afe41 Modify onImportDialogPositiveClick of MainActivity so that it makes sure the input string has the right format 2020-08-04 08:51:48 +02:00
ErikWaegerle
67e73a6175 Adjusting the SettingsActivity
Here it is checked whether the battery and system have the value true at the same time.
In this case the Battery value is set to false to solve the problem that both options can have
the same value.
2020-07-29 19:54:59 +02:00
uykek
b79685f194 Fix bug that caused a NullPointerException in the GameActivity when importing a sudoku 2020-07-26 17:13:02 +02:00
ErikWaegerle
13bd2deee1 Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0 2020-07-22 02:22:19 +02:00
ErikWaegerle
89baff374f 1) Change of the displayed stars (no stars selected) if CheckBox is set to true.
2.)Selecting the playButton starts a new CreateSudoku Intent.
3.)Additionally the button label was changed (CREATE) and "Custom Sudoku" is displayed as difficulty level.
2020-07-22 02:10:15 +02:00
uykek
3db3110618 Adjust generation of the daily sudoku so that challenges have a lesser probability of being generated than other sudokus, but generating them on the days they do appear won't take as long as before 2020-07-21 10:43:54 +02:00
uykek
efa6394f57 Override transition when navigating from MainActivity to DailySudokuActivity 2020-07-18 15:46:12 +02:00
ErikWaegerle
a538517900 Customize the Manifest and GameActivity with scheme "http://sudoku.secuso.org".
Make sure that WhatsApp accepts this as a valid link.
2020-07-16 00:50:49 +02:00
uykek
8027b8b409 Only add time and hints used in a Sudoku to HighscoreInfoContainer if sudoku isn't custom 2020-07-14 10:08:42 +02:00
uykek
f9d053a069 If the GameActivity receives an Intent carrying an imported sudoku containing the key 'isCustom', set 'isCustom' attribute of the created GameInfoContainer to 'true' 2020-07-14 09:56:21 +02:00
uykek
54a4024dac Add extra 'isCustom' to Intent from CreateSudokuActivity so that the GameActivity will know that it is handling a custom sudoku 2020-07-14 09:53:03 +02:00
uykek
2df51ac5ba Change the way a custom sudoku is saved (add 'true' at the end of the byte stream) so that the GameStateManager can recognise custom levels when loading the sudokus the user has saved on his device 2020-07-14 09:50:48 +02:00
uykek
1c6be6e5c4 Add boolean 'isCustom' variable to GameInfoContainer and GameController 2020-07-14 09:29:13 +02:00
uykek
b12d085f27 Fix bug in MainActivity that caused the MainActivity to be re-opened, rather than the GameActivity being opened, upon successfully veriying an imported sudoku 2020-07-11 14:42:34 +02:00
uykek
b98014ad88 Fix bug that caused the GameActivity to assign the difficulty "unspecified" to all imported sudokus 2020-07-11 14:33:23 +02:00
uykek
0ccb20ad19 Add string values for the ImportDialogFragment 2020-07-09 08:41:07 +02:00
uykek
61fc0a243a Update layout of the ImportDialogFragment 2020-07-09 08:38:06 +02:00
uykek
ab90d7585b Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0 2020-07-09 08:26:39 +02:00
uykek
863352d621 Fix problem that occured when starting a DialogFragment from the MainActivity's navigation bar 2020-07-09 08:25:31 +02:00
uykek
f53b4ba3fa Change IImportDialogFragmentListener interface 2020-07-09 08:24:49 +02:00
ErikWaegerle
e25da314ff bug fix
Query the current SDK version to avoid complications when setting the switches in older versions.
2020-07-07 18:15:49 +02:00
ErikWaegerle
9982c9f592 Adaptation of the GamePreferenceFragment class
Modify the switches in the SettingsActivity
If Dark Theme has been set manually, Dark Theme is displayed greyed out according to battery and system.
Additionally it is only allowed to set one of both to the Dark theme, not both at the same time.
2020-07-07 16:56:32 +02:00