Skip to content

Commit f3e20c9

Browse files
Golbinex23rd
authored andcommitted
Fix default value of "Open links in system browser" option in F-Droid build
1 parent fa915a8 commit f3e20c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TMessagesProj/src/main/java/org/telegram/ui/ForkSettingsActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ public boolean supportsPredictiveItemAnimations() {
443443
} else if (position == disableRecentFilesAttachment) {
444444
toggleGlobalMainSetting("disableRecentFilesAttachment", view, false);
445445
} else if (position == disableDefaultInAppBrowser) {
446-
toggleGlobalMainSetting("disableDefaultInAppBrowser", view, false);
446+
toggleGlobalMainSetting("disableDefaultInAppBrowser", view, org.telegram.messenger.BuildConfig.SKIP_INTERNAL_BROWSER_BY_DEFAULT);
447447
} else if (position == disablePlayVisibleVideoOnVolumeRow) {
448448
toggleGlobalMainSetting("disablePlayVisibleVideoOnVolume", view, false);
449449
} else if (position == botSkipShare) {
@@ -610,7 +610,7 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
610610
textCell.setTextAndCheck(t, preferences.getBoolean("disableRecentFilesAttachment", false), false);
611611
} else if (position == disableDefaultInAppBrowser) {
612612
String t = LocaleController.getString("DisableDefaultInAppBrowser", R.string.DisableDefaultInAppBrowser);
613-
textCell.setTextAndCheck(t, preferences.getBoolean("disableDefaultInAppBrowser", false), false);
613+
textCell.setTextAndCheck(t, preferences.getBoolean("disableDefaultInAppBrowser", org.telegram.messenger.BuildConfig.SKIP_INTERNAL_BROWSER_BY_DEFAULT), false);
614614
} else if (position == disablePlayVisibleVideoOnVolumeRow) {
615615
String t = "Disable play video on volume change";
616616
textCell.setTextAndCheck(t, preferences.getBoolean("disablePlayVisibleVideoOnVolume", false), false);

0 commit comments

Comments
 (0)