Some fixes
This commit is contained in:
parent
a06d73e281
commit
4cb1616a31
|
@ -190,7 +190,7 @@ public class WebviewActivity extends BaseActivity {
|
|||
@Override
|
||||
public boolean onPrepareOptionsMenu(Menu menu) {
|
||||
if (!peertubeLink)
|
||||
setCount(this, "0");
|
||||
setCount(WebviewActivity.this, "0");
|
||||
defaultMenu = menu;
|
||||
return super.onPrepareOptionsMenu(menu);
|
||||
}
|
||||
|
|
|
@ -202,7 +202,7 @@ public class Account implements Parcelable {
|
|||
|
||||
public static void makeAccountNameEmoji(final WeakReference<Context> contextWeakReference, Account account) {
|
||||
Context context = contextWeakReference.get();
|
||||
if ((context instanceof Activity && ((Activity) context).isFinishing()) || account.getDisplay_name() == null)
|
||||
if ((context instanceof Activity && ((Activity) context).isFinishing()) || account == null || account.getDisplay_name() == null)
|
||||
return;
|
||||
|
||||
account.setDisplayNameSpan(new SpannableString(account.getDisplay_name()));
|
||||
|
|
|
@ -3135,6 +3135,7 @@ public class Helper {
|
|||
finalUrl = "http://" + url;
|
||||
b.putString("url", finalUrl);
|
||||
intent.putExtras(b);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
context.startActivity(intent);
|
||||
} else {
|
||||
boolean custom_tabs = sharedpreferences.getBoolean(Helper.SET_CUSTOM_TABS, true);
|
||||
|
@ -3149,6 +3150,7 @@ public class Helper {
|
|||
}
|
||||
} else {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.setData(Uri.parse(url));
|
||||
try {
|
||||
context.startActivity(intent);
|
||||
|
|
Loading…
Reference in New Issue