From f1d066de65fde1fe31faa8ddbb8ecf157a073f65 Mon Sep 17 00:00:00 2001 From: serso Date: Tue, 15 Nov 2011 10:47:12 +0400 Subject: [PATCH] android_calculator-12: cursor is missing on tablet pc (android3?) --- .../org/solovyev/android/calculator/CalculatorEditor.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/solovyev/android/calculator/CalculatorEditor.java b/src/main/java/org/solovyev/android/calculator/CalculatorEditor.java index e1d252c6..7e280a48 100644 --- a/src/main/java/org/solovyev/android/calculator/CalculatorEditor.java +++ b/src/main/java/org/solovyev/android/calculator/CalculatorEditor.java @@ -7,6 +7,7 @@ package org.solovyev.android.calculator; import android.content.Context; import android.graphics.Color; +import android.os.Build; import android.text.Html; import android.util.AttributeSet; import android.util.Log; @@ -42,7 +43,13 @@ public class CalculatorEditor extends EditText { @Override public boolean onCheckIsTextEditor() { + // fix for missing cursor in android + //if ( Build.VERSION.SDK_INT >= 11 ) { + // cannot be applied as in that case soft keyboard appears on application start + //return true; + //} else { return false; + //} } @Override