From ee2aa6e25cc230bbc3b9d6e8a0a4d77c11c65fc7 Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Tue, 14 Mar 2017 09:48:10 +0900 Subject: [PATCH] Remove rotation related code from show handler Since the rotation value is now delivered via ime_app_rotation_degree_changed_cb instead of show hander's parameter, there is no need to execute rotation related code in show handler. Change-Id: Ifbe1caf0ec8c33d8d206d1f4f288bf5551a45db5 --- src/ise.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ise.cpp b/src/ise.cpp index f192149..5d24d46 100644 --- a/src/ise.cpp +++ b/src/ise.cpp @@ -1861,16 +1861,6 @@ static void ime_app_show_cb(int ic, ime_context_h ime_ctx, void *user_data) ise_set_caps_mode(iseContext.caps_mode); ise_update_cursor_position(iseContext.cursor_pos); - /* Do not follow the application's rotation angle if we are already in visible state, - since in that case we will receive the angle through ROTATION_CHANGE_REQUEST message */ - int degree = 0; - - if (!(g_keyboard_state.visible_state)) { - ise_set_screen_rotation(degree); - } else { - LOGD("Skipping rotation angle , %d\n", degree); - } - ise_show(ic); /* Now we update the whole screen */ -- 2.7.4