Skip to content

Commit

Permalink
ISSUE-1955: moveTaskToBack within minimizeApp
Browse files Browse the repository at this point in the history
  • Loading branch information
bastikempken committed Jan 12, 2024
1 parent 4acc0e8 commit 269f2e3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ public void getState(PluginCall call) {

@PluginMethod
public void minimizeApp(PluginCall call) {
Intent startMain = new Intent(Intent.ACTION_MAIN);
startMain.addCategory(Intent.CATEGORY_HOME);
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getActivity().startActivity(startMain);
getActivity().moveTaskToBack(true);
call.resolve();
}

Expand Down

0 comments on commit 269f2e3

Please sign in to comment.