mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
delay updating the options menu a bit, till the bubble disappears
This commit is contained in:
@@ -2,6 +2,7 @@ package com.simplemobiletools.calendar.activities
|
||||
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.os.Handler
|
||||
import android.support.v4.view.ViewPager
|
||||
import android.view.Menu
|
||||
import android.view.MenuItem
|
||||
@@ -73,7 +74,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
||||
private fun updateView(view: Int) {
|
||||
mConfig.view = view
|
||||
updateViewPager()
|
||||
invalidateOptionsMenu()
|
||||
Handler().postDelayed({ invalidateOptionsMenu() }, 500)
|
||||
}
|
||||
|
||||
private fun updateViewPager() {
|
||||
|
Reference in New Issue
Block a user