mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-06-11 18:19:15 -04: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