Improvements to manage apps / running services:
- Running services now keeps a single data structure to make switching through the UI a lot faster. - Display text when there are no apps. - Fix deadlock. - Add new preference entry to view manage apps for storage use. - Etc. Change-Id: I0f5babf407ed7e84169f59584ddcb6cd0e9d67d9
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -18,12 +18,20 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<ListView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@android:id/list"
|
||||
android:drawSelectorOnTop="false"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
<FrameLayout android:id="@+id/list_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<ListView android:id="@android:id/list"
|
||||
android:drawSelectorOnTop="false"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
<TextView android:id="@android:id/empty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="@string/no_applications"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
</FrameLayout>
|
||||
|
||||
<view class="com.android.settings.applications.RunningProcessesView"
|
||||
android:id="@+id/running_processes"
|
||||
@@ -1687,7 +1687,8 @@
|
||||
<string name="filter_apps_onsdcard">On SD card</string>
|
||||
<!-- Manage applications, text telling using an application is disabled. -->
|
||||
<string name="disabled">Disabled</string>
|
||||
<string name="loading">Loading\u2026</string>
|
||||
<!-- Text shown when there are no applications to display. -->
|
||||
<string name="no_applications">No applications.</string>
|
||||
<!-- Manage app screen, shown when the activity is busy recomputing the size of each app -->
|
||||
<string name="recompute_size">Recomputing size\u2026</string>
|
||||
<!-- Manage applications, individual application screen, confirmation dialog title. Displays when user selects to "Clear data". -->
|
||||
@@ -1750,12 +1751,19 @@ found in the list of installed applications.</string>
|
||||
<!-- Manage applications. application installation location summary -->
|
||||
<string name="app_install_location_summary">Change the preferred installation location for new applications.</string>
|
||||
|
||||
<!-- Services settings screen, setting option name for the user to go to the screen to view app storage use -->
|
||||
<string name="storageuse_settings_title">Storage use</string>
|
||||
<!-- Services settings screen, setting option summary for the user to go to the screen to app storage use -->
|
||||
<string name="storageuse_settings_summary">View storage used by applications</string>
|
||||
|
||||
<!-- Services settings screen, setting option name for the user to go to the screen to view running services -->
|
||||
<string name="runningservices_settings_title">Running services</string>
|
||||
<!-- Services settings screen, setting option summary for the user to go to the screen to view running services -->
|
||||
<string name="runningservices_settings_summary">View and control currently running services</string>
|
||||
<!-- Label for a service item when it is restarting -->
|
||||
<string name="service_restarting">Restarting</string>
|
||||
<!-- Text shown when there are no services running -->
|
||||
<string name="no_running_services">Nothing running.</string>
|
||||
<!-- Running services, description for a service in the started state -->
|
||||
<string name="service_started_by_app">Started by application.</string>
|
||||
<!-- Running services, description for a service in the started state -->
|
||||
|
||||
@@ -59,6 +59,14 @@
|
||||
android:targetClass="com.android.settings.RunningServices" />
|
||||
</PreferenceScreen>
|
||||
|
||||
<PreferenceScreen
|
||||
android:title="@string/storageuse_settings_title"
|
||||
android:summary="@string/storageuse_settings_summary">
|
||||
<intent android:action="android.intent.action.MAIN"
|
||||
android:targetPackage="com.android.settings"
|
||||
android:targetClass="com.android.settings.applications.StorageUse" />
|
||||
</PreferenceScreen>
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="power_usage"
|
||||
android:title="@string/power_usage_summary_title"
|
||||
|
||||
Reference in New Issue
Block a user