diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 956d12c..129123a 100755
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -3,6 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
+
+
-
\ No newline at end of file
+
diff --git a/app/src/main/assets/index.html b/app/src/main/assets/index.html
index 7cc5bc4..944f4d8 100644
--- a/app/src/main/assets/index.html
+++ b/app/src/main/assets/index.html
@@ -133,6 +133,20 @@
Fonts
Add Notes To Bottom
+
+
+
+ Enable Quick Note
+
+
+
+
+
+
+
+
+
+
@@ -550,7 +564,62 @@
Recycle Bin
try { mergeNotes(JSON.parse(jsonString)); } catch(err) {}
};
+// Status bar notes integration
+function loadNotificationSettings() {
+ let notifEnabled = localStorage.getItem("notificationEnabled") === "true";
+ document.getElementById('notification-toggle').checked = notifEnabled;
+
+ let savedTab = localStorage.getItem("inboxTabName") || "Inbox";
+ document.getElementById('inbox-tab-name').value = savedTab;
+ // Ensure the tab exists without switching to it
+ ensureTabExists(savedTab);
+ // Sync to Android
+ if (window.Android) {
+ window.Android.setInboxTabName(savedTab);
+ if (notifEnabled) window.Android.toggleNotification(true);
+ }
+}
+
+function toggleNotification(enable) {
+ localStorage.setItem("notificationEnabled", enable);
+ if (window.Android) {
+ window.Android.toggleNotification(enable);
+ }
+}
+
+function updateInboxTab(name) {
+ name = name.trim() || "Inbox";
+ localStorage.setItem("inboxTabName", name);
+ ensureTabExists(name);
+ if (window.Android) {
+ window.Android.setInboxTabName(name);
+ }
+}
+
+// Helper: add a tab if it doesn't exist, without changing active category
+function ensureTabExists(name) {
+ if (!noteCategories.includes(name)) {
+ noteCategories.push(name);
+ saveData();
+ renderTabs();
+ }
+}
+
+// Modified note receiver: adds note to the specified tab
+window.syncNoteFromAndroid = function(text, tabName) {
+ tabName = tabName || 'Inbox';
+ ensureTabExists(tabName);
+ let note = { id: Date.now(), text: text, completed: false, category: tabName };
+ notes.unshift(note);
+ saveData();
+ if (activeCategory === tabName) {
+ renderNotes();
+ }
+ // Also update stats if needed (but it's okay)
+};
+
init();
+loadNotificationSettings();