Shortcircuit call for intent for non-droid devices
This commit is contained in:
parent
fecaeb797b
commit
12c65f3d2e
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<bool> initIntentAction() async {
|
Future<bool> initIntentAction() async {
|
||||||
|
if (!Platform.isAndroid) {
|
||||||
|
AppLifecycleService.instance.setIntentAction(IntentAction.main);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
IntentAction intentAction = IntentAction.main;
|
IntentAction intentAction = IntentAction.main;
|
||||||
try {
|
try {
|
||||||
final actionResult = await _mediaExtensionPlugin.getIntentAction();
|
final actionResult = await _mediaExtensionPlugin.getIntentAction();
|
||||||
|
|
Loading…
Add table
Reference in a new issue