Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b8bdaa9 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

New AppsPermission and market style

Bug 3067333

Change-Id: Ibbf444cfd9b1e2d7b51f4194d57c6dee30ac18ee
parent d07833f5
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -17,14 +17,14 @@
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.PackageManager.NameNotFoundException;
import android.content.pm.PackageParser;
import android.content.pm.PermissionGroupInfo;
import android.content.pm.PermissionInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.view.LayoutInflater;
@@ -329,11 +329,6 @@ public class AppSecurityPermissions implements View.OnClickListener {

        TextView permGrpView = (TextView) permView.findViewById(R.id.permission_group);
        TextView permDescView = (TextView) permView.findViewById(R.id.permission_list);
        if (dangerous) {
            final Resources resources = context.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);
−2.26 KiB (938 B)
Loading image diff...
+10 −8
Original line number Diff line number Diff line
@@ -65,21 +65,23 @@
            android:layout_marginLeft="16dip"
            android:duplicateParentState="true">

            <ImageView
                android:id="@+id/show_more_icon"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />

            <TextView
                android:id="@+id/show_more_text"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:duplicateParentState="true"
                android:layout_alignTop="@id/show_more_icon"
                android:layout_alignTop="@+id/show_more_icon"
                android:layout_gravity="center_vertical"
                android:paddingLeft="6dip"
                android:layout_width="match_parent"
                android:paddingLeft="36dip"
                android:layout_weight="1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />

            <ImageView
                android:id="@id/show_more_icon"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginRight="12dip" />

        </LinearLayout>

        <View