LineageParts: Add support for clock auto-hiding

Change-Id: I1a8beff598c284754cf5b6a4f52d0ee072b5e4de
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 8421fce..223a5a5 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -450,6 +450,9 @@
     <string name="status_bar_clock_show_seconds_title">Show seconds</string>
     <string name="status_bar_clock_show_seconds_summary">Show hours, minutes, and seconds</string>
 
+    <string name="status_bar_clock_auto_hide_title">Auto hide</string>
+    <string name="status_bar_clock_auto_hide_summary">Hide clock if launcher is visible</string>
+
     <string name="status_bar_clock_position_title">Clock position</string>
     <string name="status_bar_clock_position_right">Right</string>
     <string name="status_bar_clock_position_left">Left</string>
diff --git a/res/xml/status_bar_settings.xml b/res/xml/status_bar_settings.xml
index a23b0cd..c306f1f 100644
--- a/res/xml/status_bar_settings.xml
+++ b/res/xml/status_bar_settings.xml
@@ -65,6 +65,12 @@
             android:summary="@string/status_bar_clock_show_seconds_summary"
             android:defaultValue="false" />
 
+        <lineageos.preference.LineageSystemSettingSwitchPreference
+            android:key="status_bar_clock_auto_hide"
+            android:title="@string/status_bar_clock_auto_hide_title"
+            android:summary="@string/status_bar_clock_auto_hide_summary"
+            android:defaultValue="false" />
+
         <lineageos.preference.LineageSystemSettingListPreference
             android:key="status_bar_am_pm"
             android:title="@string/status_bar_am_pm_title"