Permalink
Browse files

PowerMenu : Profile entry fix

Always reinflate views
Jira : https://jira.cyanogenmod.org/browse/CYAN-1017

Change-Id: Ib348bb4c9a85b6433a86eeed1b0de9deff9d50bc
  • Loading branch information...
1 parent b411b98 commit 342ef8d4d64ee929ff7ede48d0c18eaa7794ff0c @Danesh Danesh committed May 9, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 policy/src/com/android/internal/policy/impl/GlobalActions.java
@@ -860,9 +860,7 @@ public boolean isEnabled() {
abstract public void onPress();
public View create(Context context, View convertView, ViewGroup parent, LayoutInflater inflater) {
- View v = (convertView != null) ?
- convertView :
- inflater.inflate(R.layout.global_actions_item, parent, false);
+ View v = inflater.inflate(R.layout.global_actions_item, parent, false);
ImageView icon = (ImageView) v.findViewById(R.id.icon);
TextView messageView = (TextView) v.findViewById(R.id.message);

0 comments on commit 342ef8d

Please sign in to comment.