Skip to content

Commit

Permalink
DocumentsUI: Phone Home
Browse files Browse the repository at this point in the history
Make Storage Setting Phone the app that launch it instead of Phoning the app it belong to.
  • Loading branch information
BAProductions committed Oct 9, 2022
1 parent 753769e commit 979d4f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/android/documentsui/files/ActionHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public void openSelectedInNewWindow() {
public void openSettings(RootInfo root) {
Metrics.logUserAction(MetricConsts.USER_ACTION_SETTINGS);
final Intent intent = new Intent(DocumentsContract.ACTION_DOCUMENT_ROOT_SETTINGS);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
intent.setDataAndType(root.getUri(), DocumentsContract.Root.MIME_TYPE_ITEM);
mActivity.startActivity(intent);
}
Expand Down

0 comments on commit 979d4f3

Please sign in to comment.