Merge pull request #74 from PhotonQyv/TumblrFix

TumblrFix: Added code to change an image URL to 'https://' rather than 'http://'…
This commit is contained in:
Thomas 2017-12-02 15:51:21 +01:00 committed by GitHub
commit b066690e37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -371,7 +371,9 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
receive_picture = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
final String image = intent.getStringExtra("image");
final String image = intent.getStringExtra("image").startsWith("http://") ?
intent.getStringExtra("image").replace("http://", "https://") :
intent.getStringExtra("image");
String title = intent.getStringExtra("title");
String description = intent.getStringExtra("description");
if( description != null && description.length() > 0){