Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6caaa1c
Repo visualizer: update diagram
repo-visualizer Aug 7, 2026
b484cf3
Notereplyreceiver added
ronynn Aug 7, 2026
9d40083
Repo visualizer: update diagram
repo-visualizer Aug 7, 2026
d97c4f7
Statusbarnotes support
ronynn Aug 7, 2026
fe4403b
Repo visualizer: update diagram
repo-visualizer Aug 7, 2026
6a32aec
Notf permissions
ronynn Aug 7, 2026
814fdb3
Repo visualizer: update diagram
repo-visualizer Aug 7, 2026
52c79ef
Notf bar settings
ronynn Aug 7, 2026
3b7910a
Repo visualizer: update diagram
repo-visualizer Aug 7, 2026
ecd8fbb
Fix for build error
ronynn Aug 7, 2026
061852c
Repo visualizer: update diagram
repo-visualizer Aug 7, 2026
7c6a1bb
Try catch crash bug
ronynn Aug 7, 2026
da0f3eb
Repo visualizer: update diagram
repo-visualizer Aug 7, 2026
deec4b1
Potential fix
ronynn Aug 7, 2026
2eb01f2
Repo visualizer: update diagram
repo-visualizer Aug 7, 2026
c7f682a
Update MainActivity.java
ronynn Aug 7, 2026
1033de9
Repo visualizer: update diagram
repo-visualizer Aug 7, 2026
f6d31c6
Create ic_note.xml
ronynn Aug 8, 2026
695e8e6
Repo visualizer: update diagram
repo-visualizer Aug 8, 2026
34a1dac
Icon vector added
ronynn Aug 8, 2026
036403d
Repo visualizer: update diagram
repo-visualizer Aug 8, 2026
1dee637
Android 12+ requirements
ronynn Aug 8, 2026
4b1e82a
Repo visualizer: update diagram
repo-visualizer Aug 8, 2026
3b61840
Update NoteReplyReceiver.java
ronynn Aug 8, 2026
94e38bb
Repo visualizer: update diagram
repo-visualizer Aug 8, 2026
dbe547f
Update NoteReplyReceiver.java
ronynn Aug 8, 2026
ec5d487
Repo visualizer: update diagram
repo-visualizer Aug 8, 2026
295355d
Instant note updates
ronynn Aug 8, 2026
73ebe69
Repo visualizer: update diagram
repo-visualizer Aug 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand All @@ -19,5 +20,8 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver
android:name=".NoteReplyReceiver"
android:exported="false" />
</application>
</manifest>
</manifest>
71 changes: 70 additions & 1 deletion app/src/main/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@ <h3>Fonts</h3><br/>
<span style="font-size: 14px;">Add Notes To Bottom</span>
<input type="checkbox" id="add-btm-toggle" onchange="toggleAddBtm(this.checked)" style="width:24px; height:24px; accent-color:var(--accent);">
</div>


<div class="toggle-container">
<span style="font-size: 14px;">Enable Quick Note</span>
<input type="checkbox" id="notification-toggle" onchange="toggleNotification(this.checked)" style="width:24px; height:24px; accent-color:var(--accent);">
</div>
<div style="margin-top: 10px;">
<label for="inbox-tab-name" style="font-size: 14px;">Target Tab Name:</label>
<input type="text" id="inbox-tab-name" value="Inbox" onchange="updateInboxTab(this.value)" style="margin-top:5px;">
</div>




</div>

<div class="box">
Expand Down Expand Up @@ -550,7 +564,62 @@ <h3 class="heading-large" style="font-size: 16px;">Recycle Bin</h3>
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();
</script>
</body>
</html>
</html>
Loading
Loading