Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77fd4022 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Allow to customize title of the dialog.

TEST=adb shell am start -a android.intent.action.OPEN_DOCUMENT -e
     android.intent.extra.TITLE 'Upload!' -t "text/plain"
BUG=19150996

Change-Id: Ibded6cfaa2de3698c5eada154efbee2b323464d4
parent 5f68269e
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -393,6 +393,10 @@ public class DocumentsActivity extends BaseActivity {
    @Override
    public void updateActionBar() {
        if (mRootsToolbar != null) {
            final String prompt = getIntent().getStringExtra(DocumentsContract.EXTRA_PROMPT);
            if (prompt != null) {
                mRootsToolbar.setTitle(prompt);
            } else {
                if (mState.action == ACTION_OPEN ||
                    mState.action == ACTION_GET_CONTENT ||
                    mState.action == ACTION_OPEN_TREE) {
@@ -402,6 +406,7 @@ public class DocumentsActivity extends BaseActivity {
                    mRootsToolbar.setTitle(R.string.title_save);
                }
            }
        }

        final RootInfo root = getCurrentRoot();
        final boolean showRootIcon = mShowAsDialog