Skip to content

Commit

Permalink
v1.2.3 (9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamuno committed Aug 6, 2022
1 parent 841b831 commit 2915cf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "org.secuso.privacyfriendlynotes"
minSdkVersion 21
targetSdkVersion 32
versionCode 8
versionName "1.2.2"
versionCode 9
versionName "1.2.3"

javaCompileOptions {
annotationProcessorOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import org.secuso.privacyfriendlynotes.room.NoteDatabase
Expand All @@ -27,19 +28,12 @@ class BootReceiver : BroadcastReceiver() {
var allNotifications: List<Notification>? = null
override fun onReceive(context: Context, intent: Intent) {
if (Intent.ACTION_BOOT_COMPLETED != intent.action && Intent.ACTION_AIRPLANE_MODE_CHANGED != intent.action) return

Log.d(javaClass.simpleName, "Running onReceive...")
GlobalScope.launch {
GlobalScope.launch(Dispatchers.Main) {

//CreateEditNoteViewModel createEditNoteViewModel = new ViewModelProvider(context.getApplicationContext()).get(CreateEditNoteViewModel.class);
//ArrayAdapter<CharSequence> adapter = new ArrayAdapter(context, R.layout.simple_spinner_item);
allNotifications = NoteDatabase.getInstance(context).notificationDao().getAllNotifications()

// createEditNoteViewModel.getAllNotifications().observe((LifecycleOwner) context, new Observer<List<Notification>>() {
// @Override
// public void onChanged(List<Notification> notifications) {
// allNotifications = notifications;
// }
// });
Log.d(javaClass.simpleName, allNotifications!!.size.toString() + " Notifications found.")
for ((notification_id, time) in allNotifications!!) {

Expand Down

0 comments on commit 2915cf9

Please sign in to comment.