Fixed #433
This commit is contained in:
parent
4e45a337da
commit
7d7afd474e
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue