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