Skip to content

Commit 69c4764

Browse files
committed
Set only landscape as default for TV profile
1 parent 3a02bbd commit 69c4764

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flutter/shell/platform/tizen/tizen_window_ecore_wl2.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ void TizenWindowEcoreWl2::SetWindowOptions() {
142142
ecore_wl2_indicator_visible_type_set(ecore_wl2_window_,
143143
ECORE_WL2_INDICATOR_VISIBLE_TYPE_SHOWN);
144144

145+
#ifdef TV_PROFILE
146+
int rotations[1] = {0}; // Default is only landscape.
147+
#else
145148
int rotations[4] = {0, 90, 180, 270};
149+
#endif
146150
ecore_wl2_window_available_rotations_set(ecore_wl2_window_, rotations,
147151
sizeof(rotations) / sizeof(int));
148152

0 commit comments

Comments
 (0)