Skip to content

Commit 3b3ef7d

Browse files
committed
implement hide method on android
1 parent ee41062 commit 3b3ef7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/android/ChromeCustomTabPlugin.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
139139
}
140140
return true;
141141
}
142+
case "hide": {
143+
cordova.getActivity().startActivity(new Intent(cordova.getActivity(), cordova.getActivity().getClass()));
144+
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, true));
145+
return true;
146+
}
142147
}
143148
return false;
144149
}

0 commit comments

Comments
 (0)