Commit 39f3fe86 authored by Thomas's avatar Thomas
Browse files

little fix

parent 499f10ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -405,7 +405,7 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
                if (imageUri != null) {
                    intent = new Intent(BaseMainActivity.this, ComposeActivity.class);
                    intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
                    intent.putExtra(Helper.ARG_SHARE_URI, imageUri.toString());
                    intent.putExtra(Helper.ARG_SHARE_URI, imageUri);
                    startActivity(intent);
                } else {
                    Toasty.warning(BaseMainActivity.this, getString(R.string.toast_error), Toast.LENGTH_LONG).show();
+12 −5
Original line number Diff line number Diff line
@@ -358,12 +358,19 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
        }, 0, 10000);

        if (sharedUriList != null && sharedUriList.size() > 0) {

            Handler handler = new Handler();
            handler.postDelayed(() -> {
                List<Uri> uris = new ArrayList<>(sharedUriList);
                composeAdapter.addAttachment(-1, uris);
            }, 1000);
        } else if (sharedUri != null && !sharedUri.toString().startsWith("http")) {
            Handler handler = new Handler();
            handler.postDelayed(() -> {
                List<Uri> uris = new ArrayList<>();
                uris.add(sharedUri);
                composeAdapter.addAttachment(-1, uris);
            }, 1000);
        } else if (shareURL != null) {
            Helper.download(ComposeActivity.this, sharedUrlMedia, new OnDownloadInterface() {
                @Override