Skip to content

Commit 5e0d4a5

Browse files
committed
Added pager update if new notes appeared
1 parent 29e4509 commit 5e0d4a5

File tree

1 file changed

+6
-0
lines changed
  • app/src/main/kotlin/com/simplemobiletools/notes/pro/activities

1 file changed

+6
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ class MainActivity : SimpleActivity() {
127127
initViewPager()
128128
}
129129

130+
NotesHelper(this).getNotes { lastestNotes ->
131+
if (mNotes.size != lastestNotes.size) {
132+
initViewPager()
133+
}
134+
}
135+
130136
refreshMenuItems()
131137
pager_tab_strip.apply {
132138
setTextSize(TypedValue.COMPLEX_UNIT_PX, getPercentageFontSize())

0 commit comments

Comments
 (0)