mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
Added pager update if new notes appeared
This commit is contained in:
@ -127,6 +127,12 @@ class MainActivity : SimpleActivity() {
|
||||
initViewPager()
|
||||
}
|
||||
|
||||
NotesHelper(this).getNotes { lastestNotes ->
|
||||
if (mNotes.size != lastestNotes.size) {
|
||||
initViewPager()
|
||||
}
|
||||
}
|
||||
|
||||
refreshMenuItems()
|
||||
pager_tab_strip.apply {
|
||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, getPercentageFontSize())
|
||||
|
Reference in New Issue
Block a user