Added code to change an image URL to 'https://' rather than 'http://' so that sharing from Tumblr works.

This commit is contained in:
PhotonQyv 2017-12-02 14:26:19 +00:00
parent 829ea6fd43
commit 1ccdf2444d
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){