Add a TODO for making the layout with the same name for portrait and
landscape.
Change-Id: I159c9d4d5e687b872279420b3b06633f42eca1b5
diff --git a/src/com/android/customization/picker/clock/ClockFragment.java b/src/com/android/customization/picker/clock/ClockFragment.java
index 8ad6f1f..5191a9e 100644
--- a/src/com/android/customization/picker/clock/ClockFragment.java
+++ b/src/com/android/customization/picker/clock/ClockFragment.java
@@ -92,6 +92,8 @@
@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
diff --git a/src/com/android/customization/picker/grid/GridFragment.java b/src/com/android/customization/picker/grid/GridFragment.java
index 3370309..57720fe 100644
--- a/src/com/android/customization/picker/grid/GridFragment.java
+++ b/src/com/android/customization/picker/grid/GridFragment.java
@@ -110,6 +110,8 @@
@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
diff --git a/src/com/android/customization/picker/theme/ThemeFragment.java b/src/com/android/customization/picker/theme/ThemeFragment.java
index d8b0db3..b7a39b3 100644
--- a/src/com/android/customization/picker/theme/ThemeFragment.java
+++ b/src/com/android/customization/picker/theme/ThemeFragment.java
@@ -121,6 +121,8 @@
@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