Skip to content

Commit aef9176

Browse files
authored
Merge pull request #1 from msalcala11/implement-hide-on-android
implement hide method on android
2 parents ee41062 + 3b3ef7d commit aef9176

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)