mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -04:00
commit
0e644e813a
@ -157,6 +157,7 @@ abstract class CoreMainActivity : BaseActivity(), WebViewProvider {
|
|||||||
|
|
||||||
override fun onNewIntent(intent: Intent) {
|
override fun onNewIntent(intent: Intent) {
|
||||||
super.onNewIntent(intent)
|
super.onNewIntent(intent)
|
||||||
|
this.intent.action = intent.action
|
||||||
activeFragments().filterIsInstance<FragmentActivityExtensions>().forEach {
|
activeFragments().filterIsInstance<FragmentActivityExtensions>().forEach {
|
||||||
it.onNewIntent(intent, this)
|
it.onNewIntent(intent, this)
|
||||||
}
|
}
|
||||||
|
@ -1240,12 +1240,15 @@ public abstract class CoreReaderFragment extends BaseFragment
|
|||||||
}
|
}
|
||||||
case CoreSearchWidget.TEXT_CLICKED:
|
case CoreSearchWidget.TEXT_CLICKED:
|
||||||
goToSearch(false);
|
goToSearch(false);
|
||||||
|
intent.setAction(null);
|
||||||
break;
|
break;
|
||||||
case CoreSearchWidget.STAR_CLICKED:
|
case CoreSearchWidget.STAR_CLICKED:
|
||||||
goToBookmarks();
|
goToBookmarks();
|
||||||
|
intent.setAction(null);
|
||||||
break;
|
break;
|
||||||
case CoreSearchWidget.MIC_CLICKED:
|
case CoreSearchWidget.MIC_CLICKED:
|
||||||
goToSearch(true);
|
goToSearch(true);
|
||||||
|
intent.setAction(null);
|
||||||
break;
|
break;
|
||||||
case Intent.ACTION_VIEW:
|
case Intent.ACTION_VIEW:
|
||||||
if (intent.getType() == null || !intent.getType().equals("application/octet-stream")) {
|
if (intent.getType() == null || !intent.getType().equals("application/octet-stream")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user