merge
This commit is contained in:
commit
dc2e384822
@ -7,6 +7,10 @@
|
|||||||
- Added support for `onPermissionRequest` event on iOS 15.0+
|
- Added support for `onPermissionRequest` event on iOS 15.0+
|
||||||
- Updated `getMetaThemeColor` on iOS 15.0+
|
- Updated `getMetaThemeColor` on iOS 15.0+
|
||||||
|
|
||||||
|
## 5.4.3
|
||||||
|
|
||||||
|
- Added Bitwise OR operator support for `AndroidActionModeMenuItem` class
|
||||||
|
|
||||||
## 5.4.2+1
|
## 5.4.2+1
|
||||||
|
|
||||||
- Fixed "Latest version 5.4.2 crashes on Android - HeadlessInAppWebView.dispose" [#1155](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1155)
|
- Fixed "Latest version 5.4.2 crashes on Android - HeadlessInAppWebView.dispose" [#1155](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1155)
|
||||||
|
@ -2475,7 +2475,8 @@ class ActionModeMenuItem {
|
|||||||
return ActionModeMenuItem.values
|
return ActionModeMenuItem.values
|
||||||
.firstWhere((element) => element.toValue() == value);
|
.firstWhere((element) => element.toValue() == value);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return null;
|
// maybe coming from a Bitwise OR operator
|
||||||
|
return ActionModeMenuItem._internal(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@ -2493,9 +2494,9 @@ class ActionModeMenuItem {
|
|||||||
case 4:
|
case 4:
|
||||||
return "MENU_ITEM_PROCESS_TEXT";
|
return "MENU_ITEM_PROCESS_TEXT";
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
|
||||||
return "MENU_ITEM_NONE";
|
return "MENU_ITEM_NONE";
|
||||||
}
|
}
|
||||||
|
return _value.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
///No menu items should be disabled.
|
///No menu items should be disabled.
|
||||||
@ -2512,6 +2513,9 @@ class ActionModeMenuItem {
|
|||||||
|
|
||||||
bool operator ==(value) => value == _value;
|
bool operator ==(value) => value == _value;
|
||||||
|
|
||||||
|
ActionModeMenuItem operator |(ActionModeMenuItem value) =>
|
||||||
|
ActionModeMenuItem._internal(value.toValue() | _value);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode => _value.hashCode;
|
int get hashCode => _value.hashCode;
|
||||||
}
|
}
|
||||||
@ -2540,7 +2544,8 @@ class AndroidActionModeMenuItem {
|
|||||||
return AndroidActionModeMenuItem.values
|
return AndroidActionModeMenuItem.values
|
||||||
.firstWhere((element) => element.toValue() == value);
|
.firstWhere((element) => element.toValue() == value);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return null;
|
// maybe coming from a Bitwise OR operator
|
||||||
|
return AndroidActionModeMenuItem._internal(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@ -2558,9 +2563,9 @@ class AndroidActionModeMenuItem {
|
|||||||
case 4:
|
case 4:
|
||||||
return "MENU_ITEM_PROCESS_TEXT";
|
return "MENU_ITEM_PROCESS_TEXT";
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
|
||||||
return "MENU_ITEM_NONE";
|
return "MENU_ITEM_NONE";
|
||||||
}
|
}
|
||||||
|
return _value.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
///No menu items should be disabled.
|
///No menu items should be disabled.
|
||||||
@ -2571,14 +2576,17 @@ class AndroidActionModeMenuItem {
|
|||||||
|
|
||||||
///Disable menu item "Web Search".
|
///Disable menu item "Web Search".
|
||||||
static const MENU_ITEM_WEB_SEARCH =
|
static const MENU_ITEM_WEB_SEARCH =
|
||||||
const AndroidActionModeMenuItem._internal(2);
|
const AndroidActionModeMenuItem._internal(2);
|
||||||
|
|
||||||
///Disable all the action mode menu items for text processing.
|
///Disable all the action mode menu items for text processing.
|
||||||
static const MENU_ITEM_PROCESS_TEXT =
|
static const MENU_ITEM_PROCESS_TEXT =
|
||||||
const AndroidActionModeMenuItem._internal(4);
|
const AndroidActionModeMenuItem._internal(4);
|
||||||
|
|
||||||
bool operator ==(value) => value == _value;
|
bool operator ==(value) => value == _value;
|
||||||
|
|
||||||
|
AndroidActionModeMenuItem operator |(AndroidActionModeMenuItem value) =>
|
||||||
|
AndroidActionModeMenuItem._internal(value.toValue() | _value);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode => _value.hashCode;
|
int get hashCode => _value.hashCode;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user