mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-21 11:00:06 +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()
|
initViewPager()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NotesHelper(this).getNotes { lastestNotes ->
|
||||||
|
if (mNotes.size != lastestNotes.size) {
|
||||||
|
initViewPager()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
refreshMenuItems()
|
refreshMenuItems()
|
||||||
pager_tab_strip.apply {
|
pager_tab_strip.apply {
|
||||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, getPercentageFontSize())
|
setTextSize(TypedValue.COMPLEX_UNIT_PX, getPercentageFontSize())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user