Merge change 7035 into donut

* changes:
  Fixes #1972593. Updates AppSecurityPermissions styles in Theme.Light
This commit is contained in:
Android (Google) Code Review
2009-07-13 17:52:59 -07:00
7 changed files with 10 additions and 12 deletions

View File

@@ -18,6 +18,7 @@ package android.widget;
import com.android.internal.R;
import android.content.Context;
import android.content.res.Resources;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageParser;
@@ -319,15 +320,14 @@ public class AppSecurityPermissions implements View.OnClickListener {
boolean dangerous) {
View permView = mInflater.inflate(R.layout.app_permission_item, null);
Drawable icon = dangerous ? mDangerousIcon : mNormalIcon;
int grpColor = dangerous ? R.color.perms_dangerous_grp_color :
R.color.perms_normal_grp_color;
int permColor = dangerous ? R.color.perms_dangerous_perm_color :
R.color.perms_normal_perm_color;
TextView permGrpView = (TextView) permView.findViewById(R.id.permission_group);
TextView permDescView = (TextView) permView.findViewById(R.id.permission_list);
permGrpView.setTextColor(mContext.getResources().getColor(grpColor));
permDescView.setTextColor(mContext.getResources().getColor(permColor));
if (dangerous) {
final Resources resources = mContext.getResources();
permGrpView.setTextColor(resources.getColor(R.color.perms_dangerous_grp_color));
permDescView.setTextColor(resources.getColor(R.color.perms_dangerous_perm_color));
}
ImageView imgView = (ImageView)permView.findViewById(R.id.perm_icon);
imgView.setImageDrawable(icon);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
core/res/res/drawable/ic_bullet_key_permission.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 584 B

After

Width:  |  Height:  |  Size: 597 B

BIN
core/res/res/drawable/ic_text_dot.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 B

After

Width:  |  Height:  |  Size: 476 B

View File

@@ -54,7 +54,7 @@
<View
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="@android:drawable/divider_horizontal_dark" />
android:background="?android:attr/listDivider" />
<LinearLayout
android:orientation="horizontal"
@@ -85,7 +85,7 @@
<View
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="@android:drawable/divider_horizontal_dark" />
android:background="?android:attr/listDivider" />
</LinearLayout>

View File

@@ -68,10 +68,8 @@
<color name="darker_gray">#aaa</color>
<!-- For security permissions -->
<color name="perms_dangerous_grp_color">#ffd57e</color>
<color name="perms_dangerous_perm_color">#ddb66a</color>
<color name="perms_normal_grp_color">#eeeeee</color>
<color name="perms_normal_perm_color">#c0c0c0</color>
<color name="perms_dangerous_grp_color">#dd6826</color>
<color name="perms_dangerous_perm_color">#dd6826</color>
<!-- For search-related UIs -->
<color name="search_url_text_normal">#7fa87f</color>