author | lyra.lee <lyra.lee@amlogic.com> | 2011-12-15 09:01:31 (GMT) |
---|---|---|
committer | lyra.lee <lyra.lee@amlogic.com> | 2011-12-15 09:01:31 (GMT) |
commit | de214ddb0b28c0252270a1baa63d1a8a09cae3d5 (patch) | |
tree | 96750a06f9632bddb455e56284f17701e3e202ab | |
parent | 30fc9b2005d8b35980d8b1dec247a0448d87b022 (diff) | |
download | RemoteIME-de214ddb0b28c0252270a1baa63d1a8a09cae3d5.zip RemoteIME-de214ddb0b28c0252270a1baa63d1a8a09cae3d5.tar.gz RemoteIME-de214ddb0b28c0252270a1baa63d1a8a09cae3d5.tar.bz2 |
not call super.onConfigurationChanged when the new config is the same
-rwxr-xr-x | src/com/amlogic/inputmethod/remote/RemoteIME.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/amlogic/inputmethod/remote/RemoteIME.java b/src/com/amlogic/inputmethod/remote/RemoteIME.java index 47b5ce9..aa6c591 100755 --- a/src/com/amlogic/inputmethod/remote/RemoteIME.java +++ b/src/com/amlogic/inputmethod/remote/RemoteIME.java @@ -239,7 +239,10 @@ public class RemoteIME extends InputMethodService { if (null != mCandidatesBalloon) { mCandidatesBalloon.dismiss(); } - super.onConfigurationChanged(newConfig); + + if(newConfig.diff(env.getConfiguration()) != 0) + super.onConfigurationChanged(newConfig); + resetToIdleState(false); } |