From 68f779c9431d5f70d396ab9b930620bd35fae735 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 5 Oct 2022 17:35:19 +0200 Subject: [PATCH] Update domains only if built-in browser is used --- app/src/main/java/app/fedilab/android/BaseMainActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/BaseMainActivity.java b/app/src/main/java/app/fedilab/android/BaseMainActivity.java index 8f6a33de..766a971a 100644 --- a/app/src/main/java/app/fedilab/android/BaseMainActivity.java +++ b/app/src/main/java/app/fedilab/android/BaseMainActivity.java @@ -938,7 +938,10 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt } }).start(); } - DomainsBlock.updateDomains(BaseMainActivity.this); + boolean embedded_browser = sharedpreferences.getBoolean(getString(R.string.SET_EMBEDDED_BROWSER), true); + if (embedded_browser) { + DomainsBlock.updateDomains(BaseMainActivity.this); + } }