Skip to content

Commit

Permalink
Remove Android OnScreenKeyboard implementation (#2784)
Browse files Browse the repository at this point in the history
This implementation was not completed or used in production.

b/330183059
b/111876585
  • Loading branch information
kaidokert authored Mar 30, 2024
1 parent 822aa77 commit 96283a0
Show file tree
Hide file tree
Showing 18 changed files with 13 additions and 679 deletions.
2 changes: 0 additions & 2 deletions starboard/android/apk/apk_sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ apk_sources = [
"//starboard/android/apk/app/src/main/java/dev/cobalt/coat/CobaltTextToSpeechHelper.java",
"//starboard/android/apk/app/src/main/java/dev/cobalt/coat/CrashContextUpdateHandler.java",
"//starboard/android/apk/app/src/main/java/dev/cobalt/coat/ErrorDialog.java",
"//starboard/android/apk/app/src/main/java/dev/cobalt/coat/KeyboardEditor.java",
"//starboard/android/apk/app/src/main/java/dev/cobalt/coat/KeyboardInputConnection.java",
"//starboard/android/apk/app/src/main/java/dev/cobalt/coat/MediaPlaybackService.java",
"//starboard/android/apk/app/src/main/java/dev/cobalt/coat/NetworkStatus.java",
"//starboard/android/apk/app/src/main/java/dev/cobalt/coat/NullCobaltFactory.java",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.regex.*;
import java.util.regex.Pattern;

/** Native activity that has the required JNI methods called by the Starboard implementation. */
public abstract class CobaltActivity extends GameActivity {
Expand Down Expand Up @@ -72,7 +72,6 @@ public abstract class CobaltActivity extends GameActivity {
private CobaltA11yHelper a11yHelper;

private VideoSurfaceView videoSurfaceView;
private KeyboardEditor keyboardEditor;

private boolean forceCreateNewVideoSurfaceView = false;

Expand Down Expand Up @@ -111,12 +110,6 @@ protected void onCreate(Bundle savedInstanceState) {
a11yHelper = new CobaltA11yHelper(videoSurfaceView);
addContentView(
videoSurfaceView, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));

if (KeyboardInputConnection.nativeHasOnScreenKeyboard()) {
keyboardEditor = new KeyboardEditor(this);
addContentView(
keyboardEditor, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
}
}

/**
Expand Down Expand Up @@ -160,7 +153,7 @@ protected void onStart() {
DisplayUtil.addDisplayListener(this);
AudioOutputManager.addAudioDeviceListener(this);

getStarboardBridge().onActivityStart(this, keyboardEditor);
getStarboardBridge().onActivityStart(this);
super.onStart();
}

Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 96283a0

Please sign in to comment.