File tree 1 file changed +2
-2
lines changed
android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1966,7 +1966,7 @@ public void adjustFloatingContextMenuPosition() {
1966
1966
@ Override
1967
1967
public void onReceiveValue (String value ) {
1968
1968
if (floatingContextMenu != null ) {
1969
- if (value != null && !value .equals ("null" )) {
1969
+ if (value != null && !value .equalsIgnoreCase ("null" )) {
1970
1970
int x = contextMenuPoint .x ;
1971
1971
int y = (int ) ((Float .parseFloat (value ) * scale ) + (floatingContextMenu .getHeight () / 3.5 ));
1972
1972
contextMenuPoint .y = y ;
@@ -1986,7 +1986,7 @@ public void getSelectedText(final ValueCallback<String> resultCallback) {
1986
1986
evaluateJavascript (getSelectedTextJS , new ValueCallback <String >() {
1987
1987
@ Override
1988
1988
public void onReceiveValue (String value ) {
1989
- value = (value != null ) ? value .substring (1 , value .length () - 1 ) : null ;
1989
+ value = (value != null && ! value . equalsIgnoreCase ( "null" ) ) ? value .substring (1 , value .length () - 1 ) : null ;
1990
1990
resultCallback .onReceiveValue (value );
1991
1991
}
1992
1992
});
You can’t perform that action at this time.
0 commit comments