mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-19 10:00:16 +01:00
Added pager update if new notes appeared
This commit is contained in:
parent
29e4509b6e
commit
5e0d4a512e
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user