Settings: Tie wake on plug with some form of battery presence

Devices with no built-in battery may be disabling the top-level battery
settings menu, so tie "wake on plug" preference to that config.

Change-Id: I41e4e353d9e3b3aaadffbbcd57efcd55295987c3
diff --git a/res/xml/display_settings.xml b/res/xml/display_settings.xml
index 43f4bc4..0ed4f36 100644
--- a/res/xml/display_settings.xml
+++ b/res/xml/display_settings.xml
@@ -195,7 +195,8 @@
             android:key="wake_when_plugged_or_unplugged"
             android:title="@string/wake_when_plugged_or_unplugged_title"
             android:summary="@string/wake_when_plugged_or_unplugged_summary"
-            android:defaultValue="@*android:bool/config_unplugTurnsOnScreen" />
+            android:defaultValue="@*android:bool/config_unplugTurnsOnScreen"
+            settings:requiresConfig="@*com.android.settings:bool/config_show_top_level_battery" />
 
         <lineageos.preference.LineageSystemSettingSwitchPreference
             android:key="high_touch_polling_rate_enable"