Refactoring for increasing readability 18/253418/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 10 Feb 2021 02:49:21 +0000 (11:49 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 10 Feb 2021 05:22:04 +0000 (14:22 +0900)
Change-Id: Id4bb22de0da5f60169546efd5f36c58d4f545c62
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise.cpp

index cf10f5c..ea84389 100644 (file)
@@ -1542,11 +1542,16 @@ ise_show(int ic)
         }
 
         if (ic == keyboard_state->focused_ic) {
-            if (keyboard_state->layout == ISE_LAYOUT_STYLE_PHONENUMBER ||
-                keyboard_state->layout == ISE_LAYOUT_STYLE_IP ||
-                keyboard_state->layout == ISE_LAYOUT_STYLE_MONTH ||
-                keyboard_state->layout == ISE_LAYOUT_STYLE_NUMBERONLY) {
-                ime_set_imengine(DEFAULT_KEYBOARD_ISE_UUID);
+            switch (keyboard_state->layout)
+            {
+                case ISE_LAYOUT_STYLE_PHONENUMBER:
+                case ISE_LAYOUT_STYLE_IP:
+                case ISE_LAYOUT_STYLE_MONTH:
+                case ISE_LAYOUT_STYLE_NUMBERONLY:
+                    ime_set_imengine(DEFAULT_KEYBOARD_ISE_UUID);
+                    break;
+                default:
+                    break;
             }
         }