Skip to content

Commit

Permalink
Remove KIOSK_MODE_ALWAYS leftovers
Browse files Browse the repository at this point in the history
We used to have a build option to start Wolvic always in kiosk mode
for some flavors (China builds). Recent changes removed the configurations
in which that option could be true, so in practice it's always false.

That's why we don't really need it. Therefore it should be deleted.
  • Loading branch information
svillar committed Sep 26, 2023
1 parent d10de49 commit b78f431
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ android {
buildConfigField "Boolean", "FXA_USE_CHINA_SERVER", "false"
buildConfigField "String[]", "SPEECH_SERVICES", "{ com.igalia.wolvic.speech.SpeechServices.MEETKAI }"
buildConfigField "Boolean", "SUPPORTS_SYSTEM_NOTIFICATIONS", "false"
buildConfigField "Boolean", "KIOSK_MODE_ALWAYS", "false"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
Expand Down
12 changes: 0 additions & 12 deletions app/src/common/shared/com/igalia/wolvic/VRBrowserActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -827,18 +827,6 @@ void loadFromIntent(final Intent intent) {
openInKioskMode = extras.getBoolean("kiosk", false);
}

// In some variants Wolvic will always open in kiosk mode.
if (BuildConfig.KIOSK_MODE_ALWAYS) {
openInKioskMode = true;
if (targetUri == null) {
// If we don't have a target URI we will load the default homepage in kiosk mode,
// unless we are already showing a website in kiosk mode.
WindowWidget window = mWindows.getFocusedWindow();
if (window == null || !window.isKioskMode() || window.isCurrentUriBlank())
targetUri = Uri.parse(getString(R.string.homepage_url));
}
}

// If there is a target URI we open it
if (targetUri != null) {
Log.d(LOGTAG, "Loading URI from intent: " + targetUri);
Expand Down

0 comments on commit b78f431

Please sign in to comment.