Francisco Junior
Francisco Junior

Reputation: 2016

EditText bug? Duplicated text content on first rotation?

I just noticed an strange behavior of EditText when doing a rotation. The text content gets duplicated!

I could reproduce the issue on my phone with gtalk too. Just start a new conversation, type anything on the EditText and then rotate your device. You will get a duplicate string in the rotated EditText. This only happens on first rotation.

Just to make sure it isn't only on my phone, I tested it on the emulator and it also duplicated the text content.

This only happens on 2.3.3+

I tried on a emulator with a 2.1 image and it works ok.

Can you confirm that?

Thanks in advance.

Upvotes: 5

Views: 2008

Answers (3)

Mr-IDE
Mr-IDE

Reputation: 7641

Try using the AppCompat library and make your Activities extend AppCompatActivity.

Upvotes: 0

Sailforms Developer
Sailforms Developer

Reputation: 61

This is an issue with the autocomplete from the Keyboard.

I've been having the same problem with the activity supporting orientation changes.

See edittext doubling

Upvotes: 3

josephus
josephus

Reputation: 8304

this an application-specific bug. there must be a problem with the application's saving state process - remember that configuration change restarts your activity (goes through onStop - onRestart - onCreate). the app might have done something wrong while saving the EditText's state. EditTexts on other apps do not have the same problem.

Upvotes: 0

Related Questions