Fix bug about setting rotation callback 22/104422/1 accepted/tizen/3.0/common/20161216.122600 accepted/tizen/3.0/ivi/20161216.013431 accepted/tizen/3.0/mobile/20161216.013413 accepted/tizen/3.0/tv/20161216.013422 accepted/tizen/3.0/wearable/20161216.013427 submit/tizen_3.0/20161213.090148 submit/tizen_3.0/20161214.132837
authorJunghoon Park <jh9216.park@samsung.com>
Tue, 13 Dec 2016 08:54:11 +0000 (17:54 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Tue, 13 Dec 2016 08:54:11 +0000 (17:54 +0900)
Change-Id: I98238c3c2aec18a565c1c40824da1607821951fe
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
src/appcore-rotation.c

index e4227cb..5d90526 100644 (file)
@@ -128,7 +128,7 @@ static void __changed_cb(sensor_t sensor, unsigned int event_type,
        if (rot.callback) {
                if (rot.cb_set && rot.mode != m) {
                        _DBG("[APP %d] Rotation: %d -> %d", getpid(), rot.mode, m);
-                       rot.callback((void *)&m, m, data);
+                       rot.callback((void *)&m, m, user_data);
                        rot.mode = m;
                }
        }