mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Show feedback when nickname or forum name is too long. Bug #45.
This commit is contained in:
@@ -2,6 +2,7 @@ package org.briarproject.android;
|
||||
|
||||
import static android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION;
|
||||
import static android.content.Intent.FLAG_ACTIVITY_SINGLE_TOP;
|
||||
import static android.view.inputmethod.InputMethodManager.HIDE_IMPLICIT_ONLY;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.logging.Logger;
|
||||
@@ -18,6 +19,7 @@ import roboguice.activity.RoboActivity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
|
||||
public class BriarActivity extends RoboActivity {
|
||||
|
||||
@@ -130,4 +132,9 @@ public class BriarActivity extends RoboActivity {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected void hideSoftKeyboard() {
|
||||
Object o = getSystemService(INPUT_METHOD_SERVICE);
|
||||
((InputMethodManager) o).toggleSoftInput(HIDE_IMPLICIT_ONLY, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user