Fixes links in statuses not using custom tabs even when the option is enabled (typo).

This commit is contained in:
Vavassor 2017-07-28 11:59:32 -04:00
parent fb173c42b6
commit 9381f21e16

View file

@ -22,7 +22,6 @@ import android.preference.PreferenceManager;
import android.support.annotation.DrawableRes; import android.support.annotation.DrawableRes;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.support.v7.content.res.AppCompatResources; import android.support.v7.content.res.AppCompatResources;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
import android.text.Spanned; import android.text.Spanned;
@ -123,7 +122,7 @@ public class StatusViewHolder extends RecyclerView.ViewHolder {
* account pages. */ * account pages. */
Context context = this.content.getContext(); Context context = this.content.getContext();
boolean useCustomTabs = PreferenceManager.getDefaultSharedPreferences(context) boolean useCustomTabs = PreferenceManager.getDefaultSharedPreferences(context)
.getBoolean("useCustomTabs", true); .getBoolean("customTabs", true);
LinkHelper.setClickableText(this.content, content, mentions, useCustomTabs, listener); LinkHelper.setClickableText(this.content, content, mentions, useCustomTabs, listener);
} }