Show feedback when nickname or forum name is too long. Bug #45.

This commit is contained in:
akwizgran
2014-04-05 14:59:30 +01:00
parent 413950f794
commit 3d9f5c496f
7 changed files with 63 additions and 42 deletions

View File

@@ -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);
}
}