Caller should know the current size type of widget anytime.
[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]
Change-Id: I07bc0266c154f8f577b34afa1c76811e840afdc9
case WIDGET_TYPE_BUFFER:
case WIDGET_TYPE_SCRIPT:
if (!fb_is_created(handle->common->widget.fb)) {
- w = 0;
- h = 0;
- ret = WIDGET_ERROR_NOT_EXIST;
+ DbgPrint("FB is not created yet, but give its size to the caller: %dx%d\n", w, h);
}
break;
default:
out:
- if (size_type)
+ if (size_type) {
*size_type = result_size_type;
+ }
return ret;
}