Refactor LocationSettings
- Extends BasePreferenceController in LocationBasePreferenceController which binds preference key based on xml file instead of writing the key in java code. Then the controller can be used in many xmls. - Modify LocationServicePreferenceController to support only personal or profile user. Bug: 141601408 Test: manual, robolectric Change-Id: I51ee950dfb87474df84a8dc3db55fb911edcf599
This commit is contained in:
		@@ -10,9 +10,13 @@
 | 
			
		||||
     See the License for the specific language governing permissions and
 | 
			
		||||
     limitations under the License.
 | 
			
		||||
-->
 | 
			
		||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
        android:title="@string/location_category_recent_location_requests"
 | 
			
		||||
        android:key="recent_location_requests_see_all">
 | 
			
		||||
        <PreferenceCategory
 | 
			
		||||
            android:key="all_recent_location_requests"/>
 | 
			
		||||
<PreferenceScreen
 | 
			
		||||
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    xmlns:settings="http://schemas.android.com/apk/res-auto"
 | 
			
		||||
    android:title="@string/location_category_recent_location_requests"
 | 
			
		||||
    android:key="recent_location_requests_see_all">
 | 
			
		||||
    <PreferenceCategory
 | 
			
		||||
        android:key="all_recent_location_requests"
 | 
			
		||||
        settings:controller="com.android.settings.location.RecentLocationRequestSeeAllPreferenceController"/>
 | 
			
		||||
 | 
			
		||||
</PreferenceScreen>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user