Apply sip back key concept in composer
[apps/core/preloaded/message-app.git] / composer / src / ui-composer / msg-ui-composer-common.c
index 3c04209..6ac1eb0 100755 (executable)
@@ -5,7 +5,7 @@
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
- *    http://www.tizenopensource.org/license
+ *    http://floralicense.org/license
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
@@ -473,7 +473,6 @@ static void __msg_ui_composer_change_to_sms(MSG_COMPOSER_VIEW_DATA_S *cd)
 static void __msg_ui_composer_change_to_mms(MSG_COMPOSER_VIEW_DATA_S *cd)
 {
        D_ENTER;
-
        if (!cd) {
                MSG_UI_DEBUG(MSG_UI_LEVEL_ASSERT, "[ASSERT] composer data is NULL");
                return;
@@ -520,6 +519,11 @@ COMPOSER_RETURN_TYPE_E msg_ui_composer_change_message_type(MSG_COMPOSER_VIEW_DAT
        bool ret = msg_ui_composer_common_is_send_possible(cd);
        msg_ui_composer_body_update_send_btn_icon(cd, !ret);
 
+       if (cd->msg_type == COMPOSER_MSG_TYPE_SMS && cd->msg_ug_mode != MSG_UG_MODE_BUBBLE_COMPOSER)
+               elm_object_disabled_set(cd->more_btn, EINA_TRUE);
+       else if (cd->msg_type == COMPOSER_MSG_TYPE_MMS)
+               elm_object_disabled_set(cd->more_btn, EINA_FALSE);
+
        D_LEAVE;
        return COMPOSER_RETURN_SUCCESS;
 }
@@ -1457,3 +1461,21 @@ void msg_ui_composer_apply_font_size(MSG_COMPOSER_VIEW_DATA_S *cd, bool update_s
        D_LEAVE;
 }
 
+void msg_ui_composer_naviframe_size_hints_changed(void *data, Evas *e, Evas_Object *obj, void *event_info)
+{
+       D_ENTER;
+       D_MSG_RETM_IF(data == NULL, "Composer Data is NULL");
+       MSG_COMPOSER_VIEW_DATA_S *cd = (MSG_COMPOSER_VIEW_DATA_S *)data;
+       Evas_Display_Mode dispmode;
+
+       dispmode = evas_object_size_hint_display_mode_get(obj);
+       if (dispmode == EVAS_DISPLAY_MODE_COMPRESS) {
+               D_MSG("dispmode = EVAS_DISPLAY_MODE_COMPRESS");
+               cd->is_keypad_show = true;
+       } else if (dispmode == EVAS_DISPLAY_MODE_NONE) {
+               D_MSG("dispmode = EVAS_DISPLAY_MODE_NONE");
+               cd->is_keypad_show = false;
+       }
+       D_LEAVE;
+}
+