diff --git a/.gradle/8.0/checksums/checksums.lock b/.gradle/8.0/checksums/checksums.lock index 575d007..9e465e6 100755 Binary files a/.gradle/8.0/checksums/checksums.lock and b/.gradle/8.0/checksums/checksums.lock differ diff --git a/.gradle/8.0/checksums/md5-checksums.bin b/.gradle/8.0/checksums/md5-checksums.bin index 2c98e6e..34c6ceb 100755 Binary files a/.gradle/8.0/checksums/md5-checksums.bin and b/.gradle/8.0/checksums/md5-checksums.bin differ diff --git a/.gradle/8.0/checksums/sha1-checksums.bin b/.gradle/8.0/checksums/sha1-checksums.bin index e23d431..1b8bb5c 100755 Binary files a/.gradle/8.0/checksums/sha1-checksums.bin and b/.gradle/8.0/checksums/sha1-checksums.bin differ diff --git a/.gradle/8.0/executionHistory/executionHistory.bin b/.gradle/8.0/executionHistory/executionHistory.bin index 09fecba..4aea22a 100755 Binary files a/.gradle/8.0/executionHistory/executionHistory.bin and b/.gradle/8.0/executionHistory/executionHistory.bin differ diff --git a/.gradle/8.0/executionHistory/executionHistory.lock b/.gradle/8.0/executionHistory/executionHistory.lock index bd42507..856933e 100755 Binary files a/.gradle/8.0/executionHistory/executionHistory.lock and b/.gradle/8.0/executionHistory/executionHistory.lock differ diff --git a/.gradle/8.0/fileHashes/fileHashes.bin b/.gradle/8.0/fileHashes/fileHashes.bin index 12a3273..f7e5bd8 100755 Binary files a/.gradle/8.0/fileHashes/fileHashes.bin and b/.gradle/8.0/fileHashes/fileHashes.bin differ diff --git a/.gradle/8.0/fileHashes/fileHashes.lock b/.gradle/8.0/fileHashes/fileHashes.lock index 503caec..3380bca 100755 Binary files a/.gradle/8.0/fileHashes/fileHashes.lock and b/.gradle/8.0/fileHashes/fileHashes.lock differ diff --git a/.gradle/8.0/fileHashes/resourceHashesCache.bin b/.gradle/8.0/fileHashes/resourceHashesCache.bin index 0bac618..f0fec81 100755 Binary files a/.gradle/8.0/fileHashes/resourceHashesCache.bin and b/.gradle/8.0/fileHashes/resourceHashesCache.bin differ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 6de10cc..c433dfd 100755 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin index 5ba7b14..d151435 100755 Binary files a/.gradle/buildOutputCleanup/outputFiles.bin and b/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe index c65c7b9..f2a5394 100755 Binary files a/.gradle/file-system.probe and b/.gradle/file-system.probe differ diff --git a/app/build.gradle b/app/build.gradle index 8140a3c..f301935 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,7 @@ plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' + id 'com.google.gms.google-services' } android { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f2879fa..f5c8e6d 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -6,9 +6,9 @@ - - - + @@ -24,6 +24,9 @@ android:supportsRtl="true" android:theme="@style/Theme.ToDoList" tools:targetApi="31"> + - settingsPref?.edit()?.putInt("notifImportance", index) + settingsPref.edit()?.putInt("notifImportance", index) ?.apply() val snackbar = view?.let { it1 -> Snackbar.make( @@ -161,44 +148,9 @@ class SettingsFragment : Fragment() { } } - private fun saveToFile(text: String) { - val directoryPath = - Environment.getExternalStorageDirectory().absolutePath + "/TodoList/Backup" - val fileName = "Backup.json" - - val directory = File(directoryPath) - - if (!directory.exists()) { - directory.mkdirs() // Create the directory if it doesn't exist - } - val file = File(directory, fileName) - try { - file.createNewFile() - val fileOutputStream = FileOutputStream(file) - fileOutputStream.write(text.toByteArray()) - fileOutputStream.close() - - // File saved successfully - Toast.makeText(requireContext(), "File saved successfully", Toast.LENGTH_SHORT).show() - } catch (e: IOException) { - e.printStackTrace() - // Handle the exception - Toast.makeText(requireContext(), "Error saving file", Toast.LENGTH_SHORT).show() - } - } - - private fun checkPermission(): Boolean { - var permissionGranted = false - registerForActivityResult( - ActivityResultContracts.RequestPermission() - ) { isGranted: Boolean -> - permissionGranted = isGranted - } - return permissionGranted - } override fun onDestroyView() { diff --git a/app/src/main/res/layout/activity_signup.xml b/app/src/main/res/layout/activity_signup.xml new file mode 100644 index 0000000..5f2befb --- /dev/null +++ b/app/src/main/res/layout/activity_signup.xml @@ -0,0 +1,46 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_settings.xml b/app/src/main/res/layout/fragment_settings.xml index 3b11451..11ac96e 100755 --- a/app/src/main/res/layout/fragment_settings.xml +++ b/app/src/main/res/layout/fragment_settings.xml @@ -20,58 +20,6 @@ android:layout_height="wrap_content" android:orientation="vertical"> - - - - - - - - - - - -