@@ -182,13 +182,16 @@ private String endonymOf(String tag) {
182182 private void buildAbout (Context ctx , LinearLayout list ) {
183183 SettingsUi .infoRow (ctx , list , getString (R .string .k2go_settings_app_version ), versionName (ctx ));
184184 // ADFA-4984: manual OTA entry ("update on the air"). LibraryActivity owns the UpdateController.
185- SettingsUi .row (ctx , list , getString (R .string .k2go_settings_check_updates ), null , null , v -> {
186- if (getActivity () instanceof LibraryActivity ) {
187- org .appdevforall .k2go .update .presentation .UpdateController uc =
188- ((LibraryActivity ) getActivity ()).updateController ();
189- if (uc != null ) uc .checkForUpdatesManual ();
190- }
191- });
185+ // K2GO-403: hidden in the fdroid build, which ships no in-app updater (updates come from F-Droid).
186+ if (org .appdevforall .k2go .BuildConfig .OTA_ENABLED ) {
187+ SettingsUi .row (ctx , list , getString (R .string .k2go_settings_check_updates ), null , null , v -> {
188+ if (getActivity () instanceof LibraryActivity ) {
189+ org .appdevforall .k2go .update .presentation .UpdateController uc =
190+ ((LibraryActivity ) getActivity ()).updateController ();
191+ if (uc != null ) uc .checkForUpdatesManual ();
192+ }
193+ });
194+ }
192195 SettingsUi .row (ctx , list , getString (R .string .k2go_settings_permissions ), null , null , v -> openAppSettings (ctx ));
193196 // ADFA-5337: hide the usage-statistics toggle when analytics is compiled out (no
194197 // google-services.json), since there's nothing to share and the switch would do nothing.
0 commit comments