Follow-up on comments from splitting app info

Bug: 19511439
Change-Id: Id1395597262f66514808f71d99978120dbba70e1
This commit is contained in:
Jason Monk
2015-03-03 09:05:19 -05:00
parent cd91128a2d
commit 588a0881c1
11 changed files with 85 additions and 63 deletions

View File

@@ -1,21 +1,20 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
/* Copyright (C) 2015 The Android Open Source Project
** Copyright 2015, The Android Open Source Project
** Licensed under the Apache License, Version 2.0 (the "License");
** Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
** you may not use this file except in compliance with the License. You may obtain a copy of the License at
** You may obtain a copy of the License at
** http://www.apache.org/licenses/LICENSE-2.0
** http://www.apache.org/licenses/LICENSE-2.0
** Unless required by applicable law or agreed to in writing, software
** Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
** distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
** See the License for the specific language governing permissions and limitations under the License.
** limitations under the License.
*/
--> -->
<ScrollView <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -44,6 +43,7 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:paddingStart="?android:attr/listPreferredItemPaddingStart" android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
<TextView android:id="@+id/auto_launch" <TextView android:id="@+id/auto_launch"
android:textAppearance="?android:attr/textAppearanceSmall" android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_alignParentStart="true" android:layout_alignParentStart="true"
@@ -57,6 +57,7 @@
android:layout_below="@id/auto_launch" android:layout_below="@id/auto_launch"
android:paddingTop="4dip" android:paddingTop="4dip"
android:orientation="horizontal"> android:orientation="horizontal">
<View <View
android:layout_width="120dip" android:layout_width="120dip"
android:layout_height="0dip" android:layout_height="0dip"
@@ -72,8 +73,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.4" android:layout_weight="0.4"
android:text="@string/clear_activities" /> android:text="@string/clear_activities" />
</LinearLayout> </LinearLayout>
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>

View File

@@ -16,6 +16,7 @@
** limitations under the License. ** limitations under the License.
*/ */
--> -->
<LinearLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/all_details" android:id="@+id/all_details"

View File

@@ -1,21 +1,20 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
/* Copyright (C) 2015 The Android Open Source Project
** Copyright 2015, The Android Open Source Project
** Licensed under the Apache License, Version 2.0 (the "License");
** Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
** you may not use this file except in compliance with the License. You may obtain a copy of the License at
** You may obtain a copy of the License at
** http://www.apache.org/licenses/LICENSE-2.0
** http://www.apache.org/licenses/LICENSE-2.0
** Unless required by applicable law or agreed to in writing, software
** Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
** distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
** See the License for the specific language governing permissions and limitations under the License.
** limitations under the License.
*/
--> -->
<ScrollView <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -1,21 +1,20 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
/* Copyright (C) 2015 The Android Open Source Project
** Copyright 2015, The Android Open Source Project
** Licensed under the Apache License, Version 2.0 (the "License");
** Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
** you may not use this file except in compliance with the License. You may obtain a copy of the License at
** You may obtain a copy of the License at
** http://www.apache.org/licenses/LICENSE-2.0
** http://www.apache.org/licenses/LICENSE-2.0
** Unless required by applicable law or agreed to in writing, software
** Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
** distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
** See the License for the specific language governing permissions and limitations under the License.
** limitations under the License.
*/
--> -->
<ScrollView <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -5923,36 +5923,36 @@
<string name="slot_number">(Slot<xliff:g id="slot_num">%1$d</xliff:g>)</string> <string name="slot_number">(Slot<xliff:g id="slot_num">%1$d</xliff:g>)</string>
<!-- New strings needed for App Info 2 --> <!-- New strings needed for App Info 2 -->
<!-- Preference label for app default launch settings --> <!-- Preference label for app default launch settings [CHAR LIMIT=35]-->
<string name="launch_by_default">Launch by default</string> <string name="launch_by_default">Launch by default</string>
<!-- Summary for app storage preference --> <!-- Summary for app storage preference [CHAR LIMIT=15] -->
<string name="storage_summary_format"><xliff:g id="size" example="30.00MB">%1$s</xliff:g> used in <xliff:g id="storage_type" example="internal memory">%2$s</xliff:g></string> <string name="storage_summary_format"><xliff:g id="size" example="30.00MB">%1$s</xliff:g> used in <xliff:g id="storage_type" example="internal memory">%2$s</xliff:g></string>
<!-- Internal storage label --> <!-- Internal storage label [CHAR LIMIT=25] -->
<string name="storage_type_internal">internal memory</string> <string name="storage_type_internal">internal memory</string>
<!-- External storage label --> <!-- External storage label [CHAR LIMIT=25] -->
<string name="storage_type_external">external memory</string> <string name="storage_type_external">external memory</string>
<!-- App notification summary with notifications enabled --> <!-- App notification summary with notifications enabled [CHAR LIMIT=40] -->
<string name="notifications_enabled">On</string> <string name="notifications_enabled">On</string>
<!-- App notification summary with notifications disabled --> <!-- App notification summary with notifications disabled [CHAR LIMIT=40] -->
<string name="notifications_disabled">Block</string> <string name="notifications_disabled">Block</string>
<!-- App notification summary with notifications sensitive --> <!-- App notification summary with notifications sensitive [CHAR LIMIT=40] -->
<string name="notifications_sensitive">Sensitive</string> <string name="notifications_sensitive">Sensitive</string>
<!-- App notification summary with notifications priority --> <!-- App notification summary with notifications priority [CHAR LIMIT=40] -->
<string name="notifications_priority">Priority</string> <string name="notifications_priority">Priority</string>
<!-- App notification summary with notifications priority and sensitive --> <!-- App notification summary with notifications priority and sensitive [CHAR LIMIT=40] -->
<string name="notifications_priority_sensitive">Priority &amp; Sensitive</string> <string name="notifications_priority_sensitive">Priority &amp; Sensitive</string>
<!-- Permissions preference summary --> <!-- Permissions preference summary [CHAR LIMIT=40] -->
<plurals name="permissions_summary"> <plurals name="permissions_summary">
<item quantity="one"><xliff:g id="count" example="1">%d</xliff:g> permission granted</item> <item quantity="one"><xliff:g id="count" example="1">%d</xliff:g> permission granted</item>
<item quantity="other"><xliff:g id="count" example="10">%d</xliff:g> permissions granted</item> <item quantity="other"><xliff:g id="count" example="10">%d</xliff:g> permissions granted</item>
</plurals> </plurals>
<!-- Launch defaults preference summary with some set --> <!-- Launch defaults preference summary with some set [CHAR LIMIT=40] -->
<string name="launch_defaults_some">Some defaults set</string> <string name="launch_defaults_some">Some defaults set</string>
<!-- Launch defaults preference summary with none set --> <!-- Launch defaults preference summary with none set [CHAR LIMIT=40] -->
<string name="launch_defaults_none">No defaults set</string> <string name="launch_defaults_none">No defaults set</string>
</resources> </resources>

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package com.android.settings; package com.android.settings;
import android.app.Activity; import android.app.Activity;

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package com.android.settings.applications; package com.android.settings.applications;
import android.app.Activity; import android.app.Activity;
@@ -151,15 +152,29 @@ public abstract class AppInfoBase extends PreferenceFragment
protected abstract AlertDialog createDialog(int id, int errorCode); protected abstract AlertDialog createDialog(int id, int errorCode);
@Override @Override
public void onRunningStateChanged(boolean running) { } public void onRunningStateChanged(boolean running) {
// No op.
}
@Override @Override
public void onRebuildComplete(ArrayList<AppEntry> apps) { } public void onRebuildComplete(ArrayList<AppEntry> apps) {
// No op.
}
@Override @Override
public void onPackageIconChanged() { } public void onPackageIconChanged() {
// No op.
}
@Override @Override
public void onPackageSizeChanged(String packageName) { } public void onPackageSizeChanged(String packageName) {
// No op.
}
@Override @Override
public void onAllSizesComputed() { } public void onAllSizesComputed() {
// No op.
}
@Override @Override
public void onPackageListChanged() { public void onPackageListChanged() {

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package com.android.settings.applications; package com.android.settings.applications;
import android.app.AlertDialog; import android.app.AlertDialog;

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package com.android.settings.applications; package com.android.settings.applications;
import android.app.AlertDialog; import android.app.AlertDialog;

View File

@@ -45,7 +45,7 @@ import com.android.settings.applications.ApplicationsState.AppEntry;
import com.android.settings.applications.ApplicationsState.Callbacks; import com.android.settings.applications.ApplicationsState.Callbacks;
public class AppStorageSettings extends AppInfoWithHeader implements OnClickListener, Callbacks { public class AppStorageSettings extends AppInfoWithHeader implements OnClickListener, Callbacks {
private static final String TAG = "AppStorageSettings"; private static final String TAG = AppStorageSettings.class.getSimpleName();
//internal constants used in Handler //internal constants used in Handler
private static final int OP_SUCCESSFUL = 1; private static final int OP_SUCCESSFUL = 1;

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package com.android.settings.applications; package com.android.settings.applications;
import android.content.Context; import android.content.Context;