Minor bug fixes

This commit is contained in:
2020-01-26 17:59:38 +00:00
parent e528ef17cb
commit 9cea113ad7
2 changed files with 7 additions and 2 deletions

View File

@@ -12,8 +12,10 @@
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<activity android:name=".ui.MainActivity"> <activity android:name=".ui.MainActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN"/> <action android:name="android.intent.action.MAIN"/>

View File

@@ -70,7 +70,10 @@ class MainActivity : AppCompatActivity(), KodeinAware {
}) })
} }
override fun onResume() {
super.onResume()
invalidateOptionsMenu()
}
//implement search interface in the menu //implement search interface in the menu
override fun onCreateOptionsMenu(menu: Menu?): Boolean { override fun onCreateOptionsMenu(menu: Menu?): Boolean {