Update Settings to use themed Context.getDrawable()
Explicit null theme is passed when using Resources.getDrawable() and no theme is available, e.g. when using getResourcesForApplication(). This fixes an issue with ic_text_dot theming and helps avoid similar issues in the future. BUG: 17648301 Change-Id: I3e97c3490b6f2a55744f567b21284f2935ae9af7
This commit is contained in:
@@ -231,7 +231,7 @@ public class ToggleAccessibilityServicePreferenceFragment
|
||||
|
||||
ImageView imageView = (ImageView) capabilityView.findViewById(
|
||||
com.android.internal.R.id.perm_icon);
|
||||
imageView.setImageDrawable(getResources().getDrawable(
|
||||
imageView.setImageDrawable(getActivity().getDrawable(
|
||||
com.android.internal.R.drawable.ic_text_dot));
|
||||
|
||||
TextView labelView = (TextView) capabilityView.findViewById(
|
||||
@@ -257,7 +257,7 @@ public class ToggleAccessibilityServicePreferenceFragment
|
||||
|
||||
imageView = (ImageView) capabilityView.findViewById(
|
||||
com.android.internal.R.id.perm_icon);
|
||||
imageView.setImageDrawable(getResources().getDrawable(
|
||||
imageView.setImageDrawable(getActivity().getDrawable(
|
||||
com.android.internal.R.drawable.ic_text_dot));
|
||||
|
||||
labelView = (TextView) capabilityView.findViewById(
|
||||
|
Reference in New Issue
Block a user