|
|
@ -476,10 +476,9 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
|
|
|
|
} else if (type.startsWith("image/") || type.startsWith("video/")) {
|
|
|
|
} else if (type.startsWith("image/") || type.startsWith("video/")) {
|
|
|
|
Uri imageUri = intent.getParcelableExtra(Intent.EXTRA_STREAM);
|
|
|
|
Uri imageUri = intent.getParcelableExtra(Intent.EXTRA_STREAM);
|
|
|
|
if (imageUri != null) {
|
|
|
|
if (imageUri != null) {
|
|
|
|
intent = new Intent(BaseMainActivity.this, ComposeActivity.class);
|
|
|
|
Bundle b = new Bundle();
|
|
|
|
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
|
|
|
b.putParcelable(Helper.ARG_SHARE_URI, imageUri);
|
|
|
|
intent.putExtra(Helper.ARG_SHARE_URI, imageUri);
|
|
|
|
CrossActionHelper.doCrossShare(BaseMainActivity.this, b);
|
|
|
|
startActivity(intent);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
Toasty.warning(BaseMainActivity.this, getString(R.string.toast_error), Toast.LENGTH_LONG).show();
|
|
|
|
Toasty.warning(BaseMainActivity.this, getString(R.string.toast_error), Toast.LENGTH_LONG).show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|