change default of chrome custom tabs setting to false

main
Conny Duck 7 years ago
parent 8d2c3974bd
commit 39a6bc6fa5
  1. 3
      app/src/main/java/com/keylesspalace/tusky/AccountActivity.java
  2. 2
      app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java
  3. 2
      app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java
  4. 2
      app/src/main/res/xml/preferences.xml

@ -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…
Cancel
Save