mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-24 12:08:44 +02:00
make sure deleting the last note is impossible
This commit is contained in:
parent
2ea85dbb4a
commit
a1ad71adcc
@ -157,6 +157,8 @@ public class MainActivity extends SimpleActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void deleteNote() {
|
private void deleteNote() {
|
||||||
|
if (mNotes.size() <= 1)
|
||||||
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user