You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2016/11/03 01:06:58 UTC
[jira] [Updated] (FLEX-34726) App crash
[ https://issues.apache.org/jira/browse/FLEX-34726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-34726:
---------------------------------
Priority: Major (was: Blocker)
> App crash
> ---------
>
> Key: FLEX-34726
> URL: https://issues.apache.org/jira/browse/FLEX-34726
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: TextInput
> Affects Versions: Apache Flex 4.13.0
> Environment: - Android 4.4
> - 120 DPI device
> - Word prediction activated
> Reporter: Hugo Ferreira
>
> I have one flex mobile application.
> It works fine on Android without "word prediction activated" and also with "word prediction activated" an a device with 240 DPI however my application is designed to work on a 120 DPI device and with word prediction activated and on this scenario, the app crash while typing text on a TextInput.
> Steps to reproduce:
> 1. Type Luiz153
> 2. Remove "z" to get Lui153
> 3. Type "o" in the old "z" place to get Luio153
> At this moment the app just crash with the following android stack trace log:
> java.lang.StringIndexOutOfBoundsException: length=5; regionStart=-2; regionLength=7
> at java.lang.String.startEndAndLength(String.java:588)
> at java.lang.String.substring(String.java:1475)
> at java.lang.String.subSequence(String.java:1862)
> at com.adobe.air.AndroidInputConnection.setComposingRegion(AndroidInputConnection.java:183)
> at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:342)
> at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:77)
> at android.os.Handler.dispatchMessage(Handler.java:102)
> at android.os.Looper.loop(Looper.java:136)
> at android.app.ActivityThread.main(ActivityThread.java:5103)
> at java.lang.reflect.Method.invokeNative(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:515)
> Aditional info: If I change the TextInput skin class from spark.skins.mobile.TextInputSkin to standard desktop TextInputSkin, this issue don't occurs but of course I will get a lot of issues because it's not optimized for mobile so I believe that this issue is related with the flex mobile TextInputSkin).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)