This commit is contained in:
Mariotaku Lee 2016-04-17 14:47:33 +08:00
parent 844233bc7f
commit ace0433ebd
2 changed files with 5 additions and 2 deletions

View File

@ -218,7 +218,10 @@ public final class MediaViewerActivity extends BaseActivity implements Constants
case R.id.open_in_browser: {
final ParcelableMedia media = getMedia()[currentItem];
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) {
// TODO show error, or improve app url
}

View File

@ -394,7 +394,7 @@ public class BackgroundOperationService extends IntentService implements Constan
if (exception == null) {
exception = response.getException();
}
} else if (data.account_key != null) {
} else {
failedAccountIds.remove(data.account_key);
// BEGIN HotMobi
final TweetEvent event = TweetEvent.create(this, data, TimelineType.OTHER);