pull/3372/head
Jay 4 years ago
parent 4e45a337da
commit 7d7afd474e

@ -44,7 +44,6 @@
</activity> </activity>
<activity <activity
android:name=".ui.main.SearchActivity" android:name=".ui.main.SearchActivity"
android:launchMode="singleInstance"
android:theme="@style/Theme.Splash"> android:theme="@style/Theme.Splash">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.SEARCH" /> <action android:name="android.intent.action.SEARCH" />

@ -132,7 +132,7 @@ open class MainActivity : BaseActivity(), DownloadServiceListener {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
// Do not let the launcher create a new activity http://stackoverflow.com/questions/16283079 // Do not let the launcher create a new activity http://stackoverflow.com/questions/16283079
if (!isTaskRoot) { if (!isTaskRoot && this !is SearchActivity) {
finish() finish()
return return
} }

Loading…
Cancel
Save