change default of chrome custom tabs setting to false
This commit is contained in:
parent
93fcd33c48
commit
2d390f6603
|
@ -22,7 +22,6 @@ import android.content.Intent;
|
|||
import android.content.SharedPreferences;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.annotation.AttrRes;
|
||||
|
@ -270,7 +269,7 @@ public class AccountActivity extends BaseActivity implements ActionButtonActivit
|
|||
}
|
||||
|
||||
boolean useCustomTabs = PreferenceManager.getDefaultSharedPreferences(this)
|
||||
.getBoolean("customTabs", true);
|
||||
.getBoolean("customTabs", false);
|
||||
LinkHelper.setClickableText(note, account.note, null, useCustomTabs, new LinkListener() {
|
||||
@Override
|
||||
public void onViewTag(String tag) {
|
||||
|
|
|
@ -143,7 +143,7 @@ class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
|||
/* Redirect URLSpan's in the status content to the listener for viewing tag pages and
|
||||
* account pages. */
|
||||
boolean useCustomTabs =
|
||||
PreferenceManager.getDefaultSharedPreferences(context).getBoolean("customTabs", true);
|
||||
PreferenceManager.getDefaultSharedPreferences(context).getBoolean("customTabs", false);
|
||||
LinkHelper.setClickableText(this.content, builder, mentions, useCustomTabs, listener);
|
||||
}
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ public class LinkHelper {
|
|||
Uri uri = Uri.parse(url);
|
||||
|
||||
boolean useCustomTabs = PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getBoolean("customTabs", true);
|
||||
.getBoolean("customTabs", false);
|
||||
if (useCustomTabs) {
|
||||
openLinkInCustomTab(uri, context);
|
||||
} else {
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/pref_title_browser_settings">
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:defaultValue="false"
|
||||
android:key="customTabs"
|
||||
android:title="@string/pref_title_custom_tabs" />
|
||||
</PreferenceCategory>
|
||||
|
|
Loading…
Reference in New Issue