diff --git a/res/layout/templateentry.xml b/res/layout/templateentry.xml index 9e8d78128..a79f40bd4 100644 --- a/res/layout/templateentry.xml +++ b/res/layout/templateentry.xml @@ -33,6 +33,15 @@ android:paddingLeft="3dip" android:textAppearance="?android:attr/textAppearanceSmall" /> + + listRestrictionName = new ArrayList(PrivacyManager.getRestrictions(this).navigableKeySet()); listRestrictionName.add(0, getString(R.string.menu_all)); @@ -1212,6 +1215,7 @@ private class ViewHolder { public ImageView imgIndicator; public ImageView imgInfo; public TextView tvRestriction; + public ImageView imgUnsafe; public ImageView imgCbRestrict; public ImageView imgCbAsk; public boolean restricted; @@ -1222,6 +1226,7 @@ public ViewHolder(View theRow) { imgIndicator = (ImageView) row.findViewById(R.id.imgIndicator); imgInfo = (ImageView) row.findViewById(R.id.imgInfo); tvRestriction = (TextView) row.findViewById(R.id.tvRestriction); + imgUnsafe = (ImageView) row.findViewById(R.id.imgUnsafe); imgCbRestrict = (ImageView) row.findViewById(R.id.imgCbRestrict); imgCbAsk = (ImageView) row.findViewById(R.id.imgCbAsk); } @@ -1288,6 +1293,7 @@ public View getGroupView(int groupPosition, boolean isExpanded, View convertView : R.attr.icon_expander_minimized)); holder.imgIndicator.setVisibility(View.VISIBLE); holder.imgInfo.setVisibility(View.GONE); + holder.imgUnsafe.setVisibility(View.GONE); // Set data holder.tvRestriction.setTypeface(null, Typeface.BOLD); @@ -1392,6 +1398,7 @@ public void onClick(View view) { } }); } + holder.imgUnsafe.setVisibility(hook.isUnsafe() ? View.VISIBLE : View.GONE); // Set data if (hook.isDangerous())