Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Renamed inner class in Java file to avoid confusion with an unrelated…
Browse files Browse the repository at this point in the history
… class.
  • Loading branch information
philippwiesemann committed Apr 27, 2013
1 parent 023419c commit 12bf42b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -205,7 +205,7 @@ public static void startApp() {
}
}

static class ShowTextInputHandler implements Runnable {
static class ShowTextInputTask implements Runnable {
/*
* This is used to regulate the pan&scan method to have some offset from
* the bottom edge of the input region and the top edge of an input
Expand All @@ -215,7 +215,7 @@ static class ShowTextInputHandler implements Runnable {

public int x, y, w, h;

public ShowTextInputHandler(int x, int y, int w, int h) {
public ShowTextInputTask(int x, int y, int w, int h) {
this.x = x;
this.y = y;
this.w = w;
Expand All @@ -241,12 +241,11 @@ public void run() {
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(mTextEdit, 0);
}

}

public static void showTextInput(int x, int y, int w, int h) {
// Transfer the task to the main thread as a Runnable
mSingleton.commandHandler.post(new ShowTextInputHandler(x, y, w, h));
mSingleton.commandHandler.post(new ShowTextInputTask(x, y, w, h));
}


Expand Down

0 comments on commit 12bf42b

Please sign in to comment.