Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b1178c1 authored by Chuck Liao's avatar Chuck Liao
Browse files

Add a TODO for making the layout with the same name for portrait and

landscape.

Change-Id: I159c9d4d5e687b872279420b3b06633f42eca1b5
parent 6a524200
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -92,6 +92,8 @@ public class ClockFragment extends ToolbarFragment {
            @Nullable Bundle savedInstanceState) {
        View view;
        if (ADD_SCALABLE_HEADER) {
            // TODO(b/147780560): Once the temporary flag (ADD_SCALABLE_HEADER) is removed,
            // we should have a layout with the same name for portrait and landscape.
            int orientation = getResources().getConfiguration().orientation;
            view = inflater.inflate(
                    orientation == ORIENTATION_LANDSCAPE
+2 −0
Original line number Diff line number Diff line
@@ -110,6 +110,8 @@ public class GridFragment extends ToolbarFragment {
            @Nullable Bundle savedInstanceState) {
        View view;
        if (ADD_SCALABLE_HEADER) {
            // TODO(b/147780560): Once the temporary flag (ADD_SCALABLE_HEADER) is removed,
            // we should have a layout with the same name for portrait and landscape.
            int orientation = getResources().getConfiguration().orientation;
            view = inflater.inflate(
                    orientation == ORIENTATION_LANDSCAPE
+2 −0
Original line number Diff line number Diff line
@@ -121,6 +121,8 @@ public class ThemeFragment extends ToolbarFragment {
            @Nullable Bundle savedInstanceState) {
        View view;
        if (ADD_SCALABLE_HEADER) {
            // TODO(b/147780560): Once the temporary flag (ADD_SCALABLE_HEADER) is removed,
            // we should have a layout with the same name for portrait and landscape.
            int orientation = getResources().getConfiguration().orientation;
            view = inflater.inflate(
                    orientation == ORIENTATION_LANDSCAPE