int r = sf_check_rotation(&event);
if (r < 0) {
- status_ = UNKNOWN;
+ status_ = PORTRAIT_PRIMARY;
return;
}
ret = "LANDSCAPE_SECONDARY";
break;
default:
- ret = "UNKNOWN";
+ ret = "PORTRAIT_PRIMARY";
}
return ret;
}
enum SystemInfoDeviceOrientationStatus
SysInfoDeviceOrientation::EventToStatus(int event_data) {
- enum SystemInfoDeviceOrientationStatus m = UNKNOWN;
+ enum SystemInfoDeviceOrientationStatus m = PORTRAIT_PRIMARY;
switch (event_data) {
case(ROTATION_EVENT_0):
m = PORTRAIT_PRIMARY;
m = LANDSCAPE_PRIMARY;
break;
default:
- m = UNKNOWN;
+ m = PORTRAIT_PRIMARY;
}
return m;