This commit is contained in:
Jay 2020-05-20 22:14:25 -04:00
parent 4e45a337da
commit 7d7afd474e
2 changed files with 1 additions and 2 deletions

View file

@ -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" />

View file

@ -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
} }