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
uykek
553e98367e
Add the ImportDialogFragment to the MainActivity. Turn the verification process of the CreateSudokuActivity into a static method that can be used by the ImportDialogFragment.
2020-07-06 09:36:37 +02:00
uykek
ca71badd39
Add new layout and listener for the sudoku import DialogFragment
2020-07-06 09:35:13 +02:00
uykek
515e922260
Use 'QQWing.hasUniqueSolution()' method instead of 'QQWing.solve()' method for the custom sudoku and import verification
2020-07-05 12:52:29 +02:00
uykek
2af00fd31c
Replace hardcoded URL schemes in GameActivity and CreateSudokuActivity with constants
2020-07-01 18:45:53 +02:00
uykek
47b83dc316
Add Intent to GameActivity to onFinalizeDialogPositiveClick() method of CreateSudokuActivity
2020-07-01 18:35:06 +02:00
uykek
060b2c5740
Fix bug that caused the IFinalizeDialogFragmentListener to be called twice once the FinalizeDialogFragment is attached
2020-06-30 21:13:14 +02:00
uykek
360847f99d
Set GameType text view in CreateSudokuActivity
2020-06-30 15:33:27 +02:00
uykek
bf4f839cae
Replace hardcoded Strings in the CreateSudokuActivity and the CreateSudokuSpecialButtonLayout with string attributes.
2020-06-30 11:24:04 +02:00
uykek
e420b1b558
Add a FinalizeDialogFragment using the CreateSudokuActivity as an IFinalizeDialogFragmentListener to the CreateSudokuSpecialButtonLayout class. The DialogFragment is called when the user clicks on the 'finalize' button.
2020-06-30 11:07:37 +02:00
uykek
3bbb6576f9
Rename verify() method of CreateSudokuActivity so that it implements the onFinalizaDialogPositiveClick() method of the previously added interface and add the onDialogNegativeClick() method.
2020-06-30 10:48:24 +02:00
uykek
8d19a2239d
Add a listener interface for the finalization dialog of the CreateSudokuActivity
2020-06-30 10:42:09 +02:00
uykek
83a148887f
Delete CreateGameActivity dummy class.
2020-06-30 10:34:57 +02:00
uykek
c41ca657fd
Replace placeholder layout in CreateSudokuActivity with the CreateSudokuActivity layout
2020-06-30 10:22:51 +02:00
uykek
bc047addea
Add private verification method to CreateSudokuActivity
2020-06-30 10:14:30 +02:00
uykek
caf3bf3f9f
Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0
2020-06-30 10:07:17 +02:00
ErikWaegerle
8d72312575
Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0
2020-06-30 00:14:10 +02:00
ErikWaegerle
66a620f5f8
Creating the dummy class CreateGameActivity
...
Utility class to display the layout and not to have to customize GameActivity.
Can be deleted!
2020-06-30 00:07:07 +02:00
ErikWaegerle
0e4a03c94a
Create the CreateSudokuButtonLayout class.
...
Is identical to the SudokuSpecialButtonLayout slight modification to cover different cases.
Provides the display of the different button types.
2020-06-30 00:00:52 +02:00
ErikWaegerle
ff8b9b9559
Creating the CreateSudokuSpecialButton class
...
Modification for CreateSudokuButtonType.
2020-06-29 23:49:54 +02:00
ErikWaegerle
0bf7e70e28
Creating the CreateSudokuButtonType
...
The class contains the button types that are needed for the CreateSudoku.
The hint button was removed from the list and the finalize button was added.
2020-06-29 23:45:55 +02:00
ErikWaegerle
e832e6c4ac
Adjustment of the MainActivity, so that DarkTheme is still active with the activated battery or system status option. Dark Theme will remain if the app is closed.
2020-06-29 15:33:10 +02:00
ErikWaegerle
38a708821a
Adjusting the Settings Activity
...
Implementation of the case distinction for manual modification of the Dark Theme. It is possible to adjust the Dark Theme according to battery status or system settings.
2020-06-29 15:25:19 +02:00
uykek
abc34b899c
Implement onCreate method of CreateSudokuActivity (for now using the button layouts of the GameActivity)
2020-06-25 16:17:28 +02:00
uykek
b30ae90237
Override the onResume() and onBackPressed() methods of the CreateSudokuActivity
2020-06-24 19:18:45 +02:00
uykek
9b9670c965
Add new activity for creating custom sudokus
2020-06-24 19:02:35 +02:00
ErikWaegerle
50f7260717
Adaptation of the GameActivity
...
Dark Theme remains activated
In case the GameActivity is loaded first by clicking a sudoku:// link
2020-06-24 18:47:01 +02:00
ErikWaegerle
73e7fa3958
Adaptation of the MainActivity
...
is loaded in Main Activity, that the dark theme remains activated when the app is opened again
2020-06-24 18:36:33 +02:00