[attach-panel-voicerecorder][TSAM-9319]Added popup for not saving recording 17/95217/1 accepted/tizen/3.0/mobile/20161115.025049 accepted/tizen/mobile/20161103.000605 accepted/tizen/mobile/20161111.002607 submit/tizen_3.0/20161114.095920 submit/tizen_mobile/20161102.120834 submit/tizen_mobile/20161110.111613
authoranshu.kumar <anshu.kumar@samsung.com>
Thu, 27 Oct 2016 06:12:35 +0000 (11:42 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Wed, 2 Nov 2016 12:02:54 +0000 (05:02 -0700)
Change-Id: If82015453576c920f9274288824b7197c120d297
Signed-off-by: anshu.kumar <anshu.kumar@samsung.com>
(cherry picked from commit 45e8660ad56fc458614b2b25532574921b06b365)

src/view/audio-recorder-view.c

index 71d99461d9c99f20552d389341c69d5f44a3734e..28cc03850f62a348f7fa38ea35694bb0428f0dc9 100644 (file)
@@ -285,6 +285,11 @@ static void _recorder_stop(audio_recorder_view *view)
        if (view->recorder) {
                commitResult = recorder_commit(view->recorder);
                if (commitResult != RECORDER_ERROR_NONE) {
+                       char *domain = VR_STR_DOMAIN_LOCAL;
+                       int ret = notification_status_message_post(dgettext(domain, "Cannot save"));
+                       if (ret != 0) {
+                               LOGD("notification_status_message_post()... [0x%x]", ret);
+                       }
                        LOGD("recorder_commit failed Error [%d]", recorder_commit);
                }