Corrected Licence Information
Added Migration from v1 to v2 Fixed Dark Theme on Actionbar Popup Fixed CreateSudokuActivity Parcelable implementation Fixes #45
This commit is contained in:
parent
74a739dfba
commit
bc65183e80
71 changed files with 1080 additions and 1126 deletions
|
@ -33,15 +33,15 @@ android {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
implementation 'androidx.preference:preference:1.1.0-rc01'
|
implementation 'androidx.preference:preference:1.1.1'
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
implementation 'androidx.core:core:1.2.0'
|
implementation 'androidx.core:core:1.3.2'
|
||||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||||
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
|
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
|
||||||
implementation 'androidx.appcompat:appcompat:1.1.0'
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||||||
implementation 'com.google.android.material:material:1.1.0'
|
implementation 'com.google.android.material:material:1.2.1'
|
||||||
implementation 'androidx.legacy:legacy-support-core-ui:1.0.0'
|
implementation 'androidx.legacy:legacy-support-core-ui:1.0.0'
|
||||||
implementation 'androidx.legacy:legacy-support-core-utils:1.0.0'
|
implementation 'androidx.legacy:legacy-support-core-utils:1.0.0'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
android:theme="@style/SplashTheme">
|
android:theme="@style/SplashTheme">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku;
|
package org.secuso.privacyfriendlysudoku;
|
||||||
|
|
||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller;
|
package org.secuso.privacyfriendlysudoku.controller;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller;
|
package org.secuso.privacyfriendlysudoku.controller;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller;
|
package org.secuso.privacyfriendlysudoku.controller;
|
||||||
|
|
||||||
import android.app.IntentService;
|
import android.app.IntentService;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller;
|
package org.secuso.privacyfriendlysudoku.controller;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller;
|
package org.secuso.privacyfriendlysudoku.controller;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller;
|
package org.secuso.privacyfriendlysudoku.controller;
|
||||||
|
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller;
|
package org.secuso.privacyfriendlysudoku.controller;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller;
|
package org.secuso.privacyfriendlysudoku.controller;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller;
|
package org.secuso.privacyfriendlysudoku.controller;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
|
|
@ -1,20 +1,18 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
Privacy Friendly Sudoku is free software:
|
||||||
* This program is free software; you can redistribute it and/or modify
|
you can redistribute it and/or modify it under the terms of the
|
||||||
* it under the terms of the GNU General Public License as published by
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
either version 3 of the License, or any later version.
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
* This program is distributed in the hope that it will be useful,
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
See the GNU General Public License for more details.
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
You should have received a copy of the GNU General Public License
|
||||||
* You should have received a copy of the GNU General Public License along
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller.database;
|
package org.secuso.privacyfriendlysudoku.controller.database;
|
||||||
|
|
||||||
|
@ -26,6 +24,7 @@ import android.database.sqlite.SQLiteOpenHelper;
|
||||||
|
|
||||||
import org.secuso.privacyfriendlysudoku.controller.database.columns.DailySudokuColumns;
|
import org.secuso.privacyfriendlysudoku.controller.database.columns.DailySudokuColumns;
|
||||||
import org.secuso.privacyfriendlysudoku.controller.database.columns.LevelColumns;
|
import org.secuso.privacyfriendlysudoku.controller.database.columns.LevelColumns;
|
||||||
|
import org.secuso.privacyfriendlysudoku.controller.database.migration.MigrationUtil;
|
||||||
import org.secuso.privacyfriendlysudoku.controller.database.model.DailySudoku;
|
import org.secuso.privacyfriendlysudoku.controller.database.model.DailySudoku;
|
||||||
import org.secuso.privacyfriendlysudoku.controller.database.model.Level;
|
import org.secuso.privacyfriendlysudoku.controller.database.model.Level;
|
||||||
import org.secuso.privacyfriendlysudoku.game.GameDifficulty;
|
import org.secuso.privacyfriendlysudoku.game.GameDifficulty;
|
||||||
|
@ -52,10 +51,13 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
||||||
|
// fallback to destructive migration if no migration could be executed
|
||||||
|
if(!MigrationUtil.executeMigration(db, oldVersion, newVersion)) {
|
||||||
db.execSQL(LevelColumns.SQL_DELETE_ENTRIES);
|
db.execSQL(LevelColumns.SQL_DELETE_ENTRIES);
|
||||||
db.execSQL(DailySudokuColumns.SQL_DELETE_ENTRIES);
|
db.execSQL(DailySudokuColumns.SQL_DELETE_ENTRIES);
|
||||||
onCreate(db);
|
onCreate(db);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
||||||
onUpgrade(db, oldVersion, newVersion);
|
onUpgrade(db, oldVersion, newVersion);
|
||||||
|
|
|
@ -1,20 +1,18 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
Privacy Friendly Sudoku is free software:
|
||||||
* This program is free software; you can redistribute it and/or modify
|
you can redistribute it and/or modify it under the terms of the
|
||||||
* it under the terms of the GNU General Public License as published by
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
either version 3 of the License, or any later version.
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
* This program is distributed in the hope that it will be useful,
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
See the GNU General Public License for more details.
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
You should have received a copy of the GNU General Public License
|
||||||
* You should have received a copy of the GNU General Public License along
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.secuso.privacyfriendlysudoku.controller.database.columns;
|
package org.secuso.privacyfriendlysudoku.controller.database.columns;
|
||||||
|
|
|
@ -1,20 +1,18 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
Privacy Friendly Sudoku is free software:
|
||||||
* This program is free software; you can redistribute it and/or modify
|
you can redistribute it and/or modify it under the terms of the
|
||||||
* it under the terms of the GNU General Public License as published by
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
either version 3 of the License, or any later version.
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
* This program is distributed in the hope that it will be useful,
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
See the GNU General Public License for more details.
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
You should have received a copy of the GNU General Public License
|
||||||
* You should have received a copy of the GNU General Public License along
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.secuso.privacyfriendlysudoku.controller.database.columns;
|
package org.secuso.privacyfriendlysudoku.controller.database.columns;
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
/*
|
||||||
|
This file is part of Privacy Friendly Sudoku.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package org.secuso.privacyfriendlysudoku.controller.database.migration;
|
||||||
|
|
||||||
|
import android.database.sqlite.SQLiteDatabase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Similar idea to room migration class.
|
||||||
|
* @author Christopher Beckmann
|
||||||
|
*/
|
||||||
|
public abstract class Migration {
|
||||||
|
int from = 0;
|
||||||
|
int to = 0;
|
||||||
|
|
||||||
|
public Migration(int from, int to) {
|
||||||
|
this.from = from;
|
||||||
|
this.to = to;
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract void migrate(SQLiteDatabase db);
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
/*
|
||||||
|
This file is part of Privacy Friendly Sudoku.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package org.secuso.privacyfriendlysudoku.controller.database.migration;
|
||||||
|
|
||||||
|
import android.database.sqlite.SQLiteDatabase;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static org.secuso.privacyfriendlysudoku.controller.database.columns.DailySudokuColumns.SQL_CREATE_ENTRIES;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Christopher Beckmann
|
||||||
|
*/
|
||||||
|
public class MigrationUtil {
|
||||||
|
|
||||||
|
public static List<Migration> migrations = Arrays.asList(
|
||||||
|
new Migration(1,2) {
|
||||||
|
@Override
|
||||||
|
public void migrate(SQLiteDatabase db) {
|
||||||
|
db.execSQL(SQL_CREATE_ENTRIES);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
//TODO: for now just try to find the desired migration from the list.
|
||||||
|
// -> When more migrations are added, a chain could be found, e.g. 1->2->3
|
||||||
|
public static boolean executeMigration(SQLiteDatabase db, int from, int to) {
|
||||||
|
for(Migration m : migrations) {
|
||||||
|
if(m.from == from && m.to == to) {
|
||||||
|
m.migrate(db);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,20 +1,18 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
Privacy Friendly Sudoku is free software:
|
||||||
* This program is free software; you can redistribute it and/or modify
|
you can redistribute it and/or modify it under the terms of the
|
||||||
* it under the terms of the GNU General Public License as published by
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
either version 3 of the License, or any later version.
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
* This program is distributed in the hope that it will be useful,
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
See the GNU General Public License for more details.
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
You should have received a copy of the GNU General Public License
|
||||||
* You should have received a copy of the GNU General Public License along
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.secuso.privacyfriendlysudoku.controller.database.model;
|
package org.secuso.privacyfriendlysudoku.controller.database.model;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller.database.model;
|
package org.secuso.privacyfriendlysudoku.controller.database.model;
|
||||||
|
|
||||||
import org.secuso.privacyfriendlysudoku.controller.Symbol;
|
import org.secuso.privacyfriendlysudoku.controller.Symbol;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller.helper;
|
package org.secuso.privacyfriendlysudoku.controller.helper;
|
||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
@ -73,9 +70,6 @@ public class GameInfoContainer {
|
||||||
|
|
||||||
public void parseGameType(String s) {
|
public void parseGameType(String s) {
|
||||||
gameType = Enum.valueOf(GameType.class, s);
|
gameType = Enum.valueOf(GameType.class, s);
|
||||||
if(gameType == null) {
|
|
||||||
throw new IllegalArgumentException("GameInfoContainer: gameType could not be set.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTimePlayed() {
|
public int getTimePlayed() {
|
||||||
|
@ -88,7 +82,7 @@ public class GameInfoContainer {
|
||||||
|
|
||||||
public void parseTime(String s) {
|
public void parseTime(String s) {
|
||||||
try {
|
try {
|
||||||
this.timePlayed = Integer.valueOf(s);
|
this.timePlayed = Integer.parseInt(s);
|
||||||
} catch(NumberFormatException e) {
|
} catch(NumberFormatException e) {
|
||||||
throw new IllegalArgumentException("GameInfoContainer: Can not parse time.", e);
|
throw new IllegalArgumentException("GameInfoContainer: Can not parse time.", e);
|
||||||
}
|
}
|
||||||
|
@ -96,7 +90,7 @@ public class GameInfoContainer {
|
||||||
|
|
||||||
public void parseHintsUsed(String s) {
|
public void parseHintsUsed(String s) {
|
||||||
try {
|
try {
|
||||||
this.hintsUsed = Integer.valueOf(s);
|
this.hintsUsed = Integer.parseInt(s);
|
||||||
} catch(NumberFormatException e) {
|
} catch(NumberFormatException e) {
|
||||||
throw new IllegalArgumentException("GameInfoContainer: Can not parse hints used.", e);
|
throw new IllegalArgumentException("GameInfoContainer: Can not parse hints used.", e);
|
||||||
}
|
}
|
||||||
|
@ -104,7 +98,7 @@ public class GameInfoContainer {
|
||||||
|
|
||||||
public void parseDate(String s) {
|
public void parseDate(String s) {
|
||||||
try {
|
try {
|
||||||
this.lastTimePlayed = new Date(Long.valueOf(s));
|
this.lastTimePlayed = new Date(Long.parseLong(s));
|
||||||
} catch(NumberFormatException e) {
|
} catch(NumberFormatException e) {
|
||||||
throw new IllegalArgumentException("GameInfoContainer: LastTimePlayed Date can not be extracted.", e);
|
throw new IllegalArgumentException("GameInfoContainer: LastTimePlayed Date can not be extracted.", e);
|
||||||
}
|
}
|
||||||
|
@ -112,9 +106,6 @@ public class GameInfoContainer {
|
||||||
|
|
||||||
public void parseDifficulty(String s) {
|
public void parseDifficulty(String s) {
|
||||||
difficulty = Enum.valueOf(GameDifficulty.class, s);
|
difficulty = Enum.valueOf(GameDifficulty.class, s);
|
||||||
if(difficulty == null) {
|
|
||||||
throw new IllegalArgumentException("GameInfoContainer: difficulty could not be set.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void parseFixedValues(String s){
|
public void parseFixedValues(String s){
|
||||||
|
@ -158,7 +149,7 @@ public class GameInfoContainer {
|
||||||
int size = gameType.getSize();
|
int size = gameType.getSize();
|
||||||
int sq = size*size;
|
int sq = size*size;
|
||||||
|
|
||||||
if(gameType != GameType.Unspecified && gameType != null) {
|
if(gameType != GameType.Unspecified) {
|
||||||
if(strings.length != sq) {
|
if(strings.length != sq) {
|
||||||
throw new IllegalArgumentException("The string array must have "+sq+" entries.");
|
throw new IllegalArgumentException("The string array must have "+sq+" entries.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller.helper;
|
package org.secuso.privacyfriendlysudoku.controller.helper;
|
||||||
|
|
||||||
import org.secuso.privacyfriendlysudoku.controller.GameController;
|
import org.secuso.privacyfriendlysudoku.controller.GameController;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game;
|
package org.secuso.privacyfriendlysudoku.game;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game;
|
package org.secuso.privacyfriendlysudoku.game;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game;
|
package org.secuso.privacyfriendlysudoku.game;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game;
|
package org.secuso.privacyfriendlysudoku.game;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game;
|
package org.secuso.privacyfriendlysudoku.game;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game;
|
package org.secuso.privacyfriendlysudoku.game;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game;
|
package org.secuso.privacyfriendlysudoku.game;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game;
|
package org.secuso.privacyfriendlysudoku.game;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game;
|
package org.secuso.privacyfriendlysudoku.game;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game.listener;
|
package org.secuso.privacyfriendlysudoku.game.listener;
|
||||||
|
|
||||||
import org.secuso.privacyfriendlysudoku.game.CellConflict;
|
import org.secuso.privacyfriendlysudoku.game.CellConflict;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game.listener;
|
package org.secuso.privacyfriendlysudoku.game.listener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game.listener;
|
package org.secuso.privacyfriendlysudoku.game.listener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game.listener;
|
package org.secuso.privacyfriendlysudoku.game.listener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game.listener;
|
package org.secuso.privacyfriendlysudoku.game.listener;
|
||||||
|
|
||||||
import org.secuso.privacyfriendlysudoku.game.GameCell;
|
import org.secuso.privacyfriendlysudoku.game.GameCell;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game.listener;
|
package org.secuso.privacyfriendlysudoku.game.listener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
@ -60,18 +57,20 @@ public class CreateSudokuActivity extends BaseActivity implements IFinalizeDialo
|
||||||
SharedPreferences sharedPref;
|
SharedPreferences sharedPref;
|
||||||
SudokuFieldLayout layout;
|
SudokuFieldLayout layout;
|
||||||
SudokuKeyboardLayout keyboard;
|
SudokuKeyboardLayout keyboard;
|
||||||
TextView viewName ;
|
|
||||||
CreateSudokuSpecialButtonLayout specialButtonLayout;
|
CreateSudokuSpecialButtonLayout specialButtonLayout;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
|
sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
|
|
||||||
if (sharedPref.getBoolean("pref_keep_screen_on", true)) {
|
if (sharedPref.getBoolean("pref_keep_screen_on", true)) {
|
||||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(savedInstanceState == null) {
|
||||||
|
|
||||||
gameController = new GameController(sharedPref, getApplicationContext());
|
gameController = new GameController(sharedPref, getApplicationContext());
|
||||||
|
|
||||||
Bundle extras = getIntent().getExtras();
|
Bundle extras = getIntent().getExtras();
|
||||||
|
@ -82,9 +81,15 @@ public class CreateSudokuActivity extends BaseActivity implements IFinalizeDialo
|
||||||
GameInfoContainer container = new GameInfoContainer(0, GameDifficulty.Moderate,
|
GameInfoContainer container = new GameInfoContainer(0, GameDifficulty.Moderate,
|
||||||
gameType, new int[boardSize], new int[boardSize], new boolean[boardSize][sectionSize]);
|
gameType, new int[boardSize], new int[boardSize], new boolean[boardSize][sectionSize]);
|
||||||
gameController.loadLevel(container);
|
gameController.loadLevel(container);
|
||||||
|
} else {
|
||||||
|
gameController = savedInstanceState.getParcelable("gameController");
|
||||||
|
if(gameController != null) {
|
||||||
|
gameController.removeAllListeners();
|
||||||
|
gameController.setContextAndSettings(getApplicationContext(), sharedPref);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setUpLayout();
|
setUpLayout();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpLayout() {
|
private void setUpLayout() {
|
||||||
|
@ -269,4 +274,21 @@ public class CreateSudokuActivity extends BaseActivity implements IFinalizeDialo
|
||||||
public void onDialogNegativeClick() {
|
public void onDialogNegativeClick() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSaveInstanceState(Bundle savedInstanceState) {
|
||||||
|
// Always call the superclass so it can save the view hierarchy state
|
||||||
|
super.onSaveInstanceState(savedInstanceState);
|
||||||
|
|
||||||
|
// Save the user's current game state
|
||||||
|
savedInstanceState.putParcelable("gameController", gameController);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onRestoreInstanceState(Bundle savedInstanceState) {
|
||||||
|
super.onRestoreInstanceState(savedInstanceState);
|
||||||
|
|
||||||
|
gameController = savedInstanceState.getParcelable("gameController");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
@ -59,8 +56,6 @@ import java.util.TimeZone;
|
||||||
*The activity is responsible for the logic of the DailySudoku.
|
*The activity is responsible for the logic of the DailySudoku.
|
||||||
*DailySudoku is a game mode where every day a different Sudoku is created for the user
|
*DailySudoku is a game mode where every day a different Sudoku is created for the user
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
public class DailySudokuActivity extends AppCompatActivity {
|
public class DailySudokuActivity extends AppCompatActivity {
|
||||||
|
|
||||||
List<DailySudoku> sudokuList;
|
List<DailySudoku> sudokuList;
|
||||||
|
@ -189,7 +184,7 @@ public class DailySudokuActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean onCreateOptionsMenu(Menu menu) {
|
public boolean onCreateOptionsMenu(Menu menu) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
@ -673,18 +670,20 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSaveInstanceState(Bundle savedInstanceState) {
|
public void onSaveInstanceState(Bundle savedInstanceState) {
|
||||||
// Save the user's current game state
|
|
||||||
|
|
||||||
savedInstanceState.putParcelable("gameController", gameController);
|
|
||||||
savedInstanceState.putInt("gameSolved", gameSolved ? 1 : 0);
|
|
||||||
|
|
||||||
// Always call the superclass so it can save the view hierarchy state
|
// Always call the superclass so it can save the view hierarchy state
|
||||||
super.onSaveInstanceState(savedInstanceState);
|
super.onSaveInstanceState(savedInstanceState);
|
||||||
|
|
||||||
|
// Save the user's current game state
|
||||||
|
savedInstanceState.putParcelable("gameController", gameController);
|
||||||
|
savedInstanceState.putBoolean("gameSolved", gameSolved);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRestoreInstanceState(Bundle savedInstanceState) {
|
public void onRestoreInstanceState(Bundle savedInstanceState) {
|
||||||
//super.onRestoreInstanceState(savedInstanceState);
|
super.onRestoreInstanceState(savedInstanceState);
|
||||||
|
|
||||||
|
gameController = savedInstanceState.getParcelable("gameController");
|
||||||
|
gameSolved = savedInstanceState.getBoolean("gameSolved");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class ShareBoardDialog extends DialogFragment {
|
public static class ShareBoardDialog extends DialogFragment {
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui;
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.listener;
|
package org.secuso.privacyfriendlysudoku.ui.listener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.listener;
|
package org.secuso.privacyfriendlysudoku.ui.listener;
|
||||||
|
|
||||||
public interface IFinalizeDialogFragmentListener {
|
public interface IFinalizeDialogFragmentListener {
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.listener;
|
package org.secuso.privacyfriendlysudoku.ui.listener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.listener;
|
package org.secuso.privacyfriendlysudoku.ui.listener;
|
||||||
|
|
||||||
public interface IImportDialogFragmentListener {
|
public interface IImportDialogFragmentListener {
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.listener;
|
package org.secuso.privacyfriendlysudoku.ui.listener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.listener;
|
package org.secuso.privacyfriendlysudoku.ui.listener;
|
||||||
|
|
||||||
public interface IShareDialogFragmentListener {
|
public interface IShareDialogFragmentListener {
|
||||||
|
|
|
@ -1,20 +1,18 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
Privacy Friendly Sudoku is free software:
|
||||||
* This program is free software; you can redistribute it and/or modify
|
you can redistribute it and/or modify it under the terms of the
|
||||||
* it under the terms of the GNU General Public License as published by
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
either version 3 of the License, or any later version.
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
* This program is distributed in the hope that it will be useful,
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
See the GNU General Public License for more details.
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
You should have received a copy of the GNU General Public License
|
||||||
* You should have received a copy of the GNU General Public License along
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import androidx.annotation.DrawableRes;
|
import androidx.annotation.DrawableRes;
|
||||||
|
|
|
@ -1,29 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.widget.ImageButton;
|
import android.widget.ImageButton;
|
||||||
|
|
||||||
public class CreateSudokuSpecialButton extends ImageButton {
|
public class CreateSudokuSpecialButton extends androidx.appcompat.widget.AppCompatImageButton {
|
||||||
private int value = -1;
|
private int value = -1;
|
||||||
private CreateSudokuButtonType type = CreateSudokuButtonType.Unspecified;
|
private CreateSudokuButtonType type = CreateSudokuButtonType.Unspecified;
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
@ -31,7 +28,7 @@ import android.widget.Button;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class SudokuButton extends Button {
|
public class SudokuButton extends androidx.appcompat.widget.AppCompatButton {
|
||||||
|
|
||||||
private int value = -1;
|
private int value = -1;
|
||||||
private SudokuButtonType type = SudokuButtonType.Unspecified;
|
private SudokuButtonType type = SudokuButtonType.Unspecified;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import androidx.annotation.DrawableRes;
|
import androidx.annotation.DrawableRes;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
@ -26,7 +23,7 @@ import android.widget.ImageButton;
|
||||||
/**
|
/**
|
||||||
* Created by TMZ_LToP on 07.12.2015.
|
* Created by TMZ_LToP on 07.12.2015.
|
||||||
*/
|
*/
|
||||||
public class SudokuSpecialButton extends ImageButton {
|
public class SudokuSpecialButton extends androidx.appcompat.widget.AppCompatImageButton {
|
||||||
private int value = -1;
|
private int value = -1;
|
||||||
private SudokuButtonType type = SudokuButtonType.Unspecified;
|
private SudokuButtonType type = SudokuButtonType.Unspecified;
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* qqwing - Sudoku solver and generator
|
This file is part of Privacy Friendly Sudoku.
|
||||||
* Copyright (C) 2014 Stephen Ostermiller
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.ui.view;
|
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||||
|
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
|
|
||||||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
|
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
|
||||||
|
|
||||||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
|
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Dark" />
|
||||||
|
|
||||||
<style name="WinDialog">
|
<style name="WinDialog">
|
||||||
<item name="android:windowIsTranslucent">true</item>
|
<item name="android:windowIsTranslucent">true</item>
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
/*
|
||||||
|
This file is part of Privacy Friendly Sudoku.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.controller;
|
package org.secuso.privacyfriendlysudoku.controller;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
/*
|
||||||
|
This file is part of Privacy Friendly Sudoku.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is free software:
|
||||||
|
you can redistribute it and/or modify it under the terms of the
|
||||||
|
GNU General Public License as published by the Free Software Foundation,
|
||||||
|
either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
Privacy Friendly Sudoku is distributed in the hope
|
||||||
|
that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Privacy Friendly Sudoku. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package org.secuso.privacyfriendlysudoku.game.solver;
|
package org.secuso.privacyfriendlysudoku.game.solver;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
|
Loading…
Reference in a new issue