So, this is interesting case. I've a SearchView
in my Toolbar
. The moment I click inside SearchView
application automatically re-starts. This happens when I use specific model: Huawei P9 Lite. Any other device I tried on emulator - works as expected. I tried to Log a message in onConfigurationChange()
, but nothing was displayed so the reason behind this is unknown.
My Activity manifest looks like:
<activity android:name=".Activity"
android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize"
android:windowSoftInputMode="adjustResize"
android:label=""
android:parentActivityName=".Activity" />
What could cause this?