longzuyuan / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

Disable predictive input on TextViews #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Edit a profile
2. Click on "Basic"
3. Use the "Server Address:" field

What is the expected output? What do you see instead?

My Keyboard tries to predict and correct the ip-adress/hostname I enter. My 
keyboard is the swiftkey X keyboard which automatically tries to correct input 
text.

What mobile phone are you using?
Galaxy Nexus + Nexus 7

Which Android Version and stock ROM or aftermarket like cyanogenmod?
Stock

Please provide any additional information below.

The automatic correction, spellchecking and others can be disabled using 
'inputType=text|textNoSuggestions' in the Android Layout. One should carefully 
inspect the text-fields and check for which the predictions should be disabled. 
The make sense for some fields (i.e. 'Profile Name'). Especially when entering 
IP-Adresses it does not make a lot of sense.

Original issue reported on code.google.com by BruhnDom...@gmail.com on 3 Sep 2012 at 10:25

GoogleCodeExporter commented 9 years ago
I will look through the field to see where it makes sense and where not. But I 
think it makes sense for the address name field for two reasons:

a) often the url consists of string that are in your dictionary.
b) the lazy excuse: androids own text inputs which require a host name act in 
the same way.

For the pure IP (like DNS) field I will definitely change it.

Original comment by arne@rfc2549.org on 3 Sep 2012 at 10:47

GoogleCodeExporter commented 9 years ago
Also also checked some apps and have a different conclusion that it might not 
make sense to have autocorrection here. For example, the EMail Application 
(Stock Jelly Bean) has its server address fields without auto correction. It 
depends on the keyboard application you are using how big the differences are: 
The SwiftkeyX Keyboard automatically ads a space after each dot which makes 
entering a adress like 'openvpn.server.net' quite timeconsuming because you 
have to delete the spaces afterwards.

But, I understand your reasons, I'm fine with that.

Original comment by BruhnDom...@gmail.com on 3 Sep 2012 at 10:51

GoogleCodeExporter commented 9 years ago
I think I will flag the input with TEXT_VARIATION_URI that should give you 
sensible input in your keyboard but keeps auto complementation. If not your 
Input method may be broken :)

Original comment by arne@rfc2549.org on 3 Sep 2012 at 11:05

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 4f4892ea90a6.

Original comment by arne@rfc2549.org on 4 Sep 2012 at 9:59