diff --git a/android-app-core/res/values/styles.xml b/android-app-core/res/values/styles.xml
index 4d9b3f46..f1e1a9f3 100644
--- a/android-app-core/res/values/styles.xml
+++ b/android-app-core/res/values/styles.xml
@@ -56,6 +56,7 @@
- left|top
- fill_parent
- fill_parent
+ - text
- @dimen/cpp_editor_text_size
diff --git a/android-app-core/src/main/java/org/solovyev/android/calculator/AndroidCalculatorEditorView.java b/android-app-core/src/main/java/org/solovyev/android/calculator/AndroidCalculatorEditorView.java
index ed23846a..60a7a0c2 100644
--- a/android-app-core/src/main/java/org/solovyev/android/calculator/AndroidCalculatorEditorView.java
+++ b/android-app-core/src/main/java/org/solovyev/android/calculator/AndroidCalculatorEditorView.java
@@ -7,6 +7,7 @@ package org.solovyev.android.calculator;
import android.content.Context;
import android.content.SharedPreferences;
+import android.content.res.Configuration;
import android.graphics.Color;
import android.os.Build;
import android.os.Handler;
@@ -65,30 +66,6 @@ public class AndroidCalculatorEditorView extends EditText implements SharedPrefe
super(context, attrs, defStyle);
}
- @Override
- public boolean onCheckIsTextEditor() {
- // NOTE: code below can be used carefully and should not be copied without special intention
- // The main purpose of code is to disable soft input (virtual keyboard) but leave all the TextEdit functionality, like cursor, scrolling, copy/paste menu etc
-
- if (Build.VERSION.SDK_INT >= 11) {
- // fix for missing cursor in android 3 and higher
- try {
- // IDEA: return false always except if method was called from TextView.isCursorVisible() method
- for (StackTraceElement stackTraceElement : CollectionsUtils.asList(Thread.currentThread().getStackTrace())) {
- if ("isCursorVisible".equals(stackTraceElement.getMethodName())) {
- return true;
- }
- }
- } catch (RuntimeException e) {
- // just in case...
- }
-
- return false;
- } else {
- return false;
- }
- }
-
@Override
protected void onCreateContextMenu(ContextMenu menu) {
super.onCreateContextMenu(menu);