Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Fix issue with poem share not including photo in TweetComposer
Browse files Browse the repository at this point in the history
* TweetComposer imageUri should be a file Uri (file://<abs_path>)
  • Loading branch information
dghubble committed Feb 25, 2015
1 parent 47ea22d commit d1f05e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ protected Boolean doInBackground(View... views) {
final CharSequence hashtag
= ((TextView) poem.findViewById(R.id.poem_theme)).getText();

final Uri imageUri = Uri.parse(picFile.getAbsolutePath());
// create Uri from local image file://<absolute path>
final Uri imageUri = Uri.fromFile(picFile);
final TweetComposer.Builder builder
= new TweetComposer.Builder(PoemHistoryActivity.this)
.text(getApplicationContext().getResources()
Expand Down

0 comments on commit d1f05e7

Please sign in to comment.