fixed #519
This commit is contained in:
parent
844233bc7f
commit
ace0433ebd
|
@ -218,7 +218,10 @@ public final class MediaViewerActivity extends BaseActivity implements Constants
|
||||||
case R.id.open_in_browser: {
|
case R.id.open_in_browser: {
|
||||||
final ParcelableMedia media = getMedia()[currentItem];
|
final ParcelableMedia media = getMedia()[currentItem];
|
||||||
try {
|
try {
|
||||||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(media.url)));
|
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(media.url));
|
||||||
|
intent.addCategory(Intent.CATEGORY_BROWSABLE);
|
||||||
|
intent.setPackage(IntentUtils.getDefaultBrowserPackage(this));
|
||||||
|
startActivity(intent);
|
||||||
} catch (ActivityNotFoundException e) {
|
} catch (ActivityNotFoundException e) {
|
||||||
// TODO show error, or improve app url
|
// TODO show error, or improve app url
|
||||||
}
|
}
|
||||||
|
|
|
@ -394,7 +394,7 @@ public class BackgroundOperationService extends IntentService implements Constan
|
||||||
if (exception == null) {
|
if (exception == null) {
|
||||||
exception = response.getException();
|
exception = response.getException();
|
||||||
}
|
}
|
||||||
} else if (data.account_key != null) {
|
} else {
|
||||||
failedAccountIds.remove(data.account_key);
|
failedAccountIds.remove(data.account_key);
|
||||||
// BEGIN HotMobi
|
// BEGIN HotMobi
|
||||||
final TweetEvent event = TweetEvent.create(this, data, TimelineType.OTHER);
|
final TweetEvent event = TweetEvent.create(this, data, TimelineType.OTHER);
|
||||||
|
|
Loading…
Reference in New Issue