- refact to use fragments
- use AppCompatActivity so the app bar is more customizable
- switch couple more setting page to use pagedList pattern
Test: manually verified
Change-Id: I936006c07c79e43cc02640916450493a90bcfe3b
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index ad37334..7f4a0f5 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -56,12 +56,12 @@
<application
android:icon="@drawable/ic_launcher_settings"
+ android:theme="@style/CarSettingTheme"
android:label="@string/settings_label">
<activity
- android:name=".home.HomepageActivity"
+ android:name=".common.CarSettingActivity"
android:label="@string/settings_label"
- android:theme="@style/CarSettingTheme"
android:launchMode="singleTask"
android:exported="true">
<intent-filter>
@@ -70,242 +70,5 @@
</intent-filter>
</activity>
- <activity
- android:name=".display.DisplaySettingsActivity"
- android:label="@string/display_settings"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_display">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.FRAGMENT_CLASS"
- android:value="com.android.car.settings.display.DisplaySettings"/>
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- <meta-data
- android:name="com.android.settings.category"
- android:value="com.android.settings.category.ia.homepage"/>
- </activity>
-
- <activity
- android:name=".wifi.WifiSettingsActivity"
- android:label="@string/wifi_settings"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_wifi">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.FRAGMENT_CLASS"
- android:value="com.android.car.settings.wifi.WifiSettings"/>
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- <meta-data
- android:name="com.android.settings.category"
- android:value="com.android.settings.category.ia.homepage"/>
- </activity>
-
- <activity
- android:name=".wifi.WifiDetailActivity"
- android:label="@string/wifi_settings"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_wifi">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- </activity>
-
- <activity
- android:name=".wifi.AddWifiActivity"
- android:label="@string/wifi_settings"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_wifi">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- </activity>
-
- <activity
- android:name=".bluetooth.BluetoothSettingsActivity"
- android:label="@string/bluetooth_settings"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_bluetooth">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- <meta-data
- android:name="com.android.settings.category"
- android:value="com.android.settings.category.ia.homepage"/>
- </activity>
-
- <activity
- android:name=".bluetooth.BluetoothDetailActivity"
- android:label="@string/bluetooth_settings"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_bluetooth">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- </activity>
-
- <activity
- android:name=".sound.SoundSettingsActivity"
- android:label="@string/sound_settings"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_sound">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- <meta-data
- android:name="com.android.settings.category"
- android:value="com.android.settings.category.ia.homepage"/>
- </activity>
-
- <!-- Applications settings -->
- <activity
- android:name=".applications.ApplicationSettingsActivity"
- android:label="@string/applications_settings"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_applications">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- <meta-data
- android:name="com.android.settings.category"
- android:value="com.android.settings.category.ia.homepage"/>
- </activity>
-
- <activity
- android:name=".applications.ApplicationDetailActivity"
- android:label="@string/applications_settings"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_applications">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- </activity>
-
-
- <activity
- android:name=".datetime.DatetimeSettingsActivity"
- android:label="@string/date_and_time_settings_title"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_date_time">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- <meta-data
- android:name="com.android.settings.category"
- android:value="com.android.settings.category.ia.homepage"/>
- </activity>
-
- <activity
- android:name=".datetime.DatePickerActivity"
- android:label="@string/date_and_time_settings_title"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_date_time">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- </activity>
-
- <activity
- android:name=".datetime.TimePickerActivity"
- android:label="@string/date_and_time_settings_title"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_date_time">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- </activity>
-
- <activity
- android:name=".datetime.TimeZonePickerActivity"
- android:label="@string/date_and_time_settings_title"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_date_time">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- </activity>
-
- <activity
- android:name=".system.SystemSettingsActivity"
- android:label="@string/system_setting_title"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_about">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- <meta-data
- android:name="com.android.settings.category"
- android:value="com.android.settings.category.ia.homepage"/>
- </activity>
- <activity
- android:name=".system.AboutSettingsActivity"
- android:label="@string/system_setting_title"
- android:theme="@style/CarSettingTheme"
- android:icon="@drawable/ic_settings_about">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.SETTINGS"/>
- </intent-filter>
-
- <meta-data
- android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
- android:value="true"/>
- </activity>
</application>
</manifest>