Skip to content

Commit 4d84c45

Browse files
committed
apply fix for #280 where needed.
1 parent ccd6ab4 commit 4d84c45

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cSploit/src/org/csploit/android/ActionActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
127127
LayoutInflater inflater = (LayoutInflater) ActionActivity.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
128128
row = inflater.inflate(R.layout.actions_list_item, parent, false);
129129
if (getSharedPreferences("THEME", 0).getBoolean("isDark", false))
130-
row.setBackground(getResources().getDrawable(R.drawable.card_background_dark));
130+
row.setBackgroundResource(R.drawable.card_background_dark);
131131
holder = new ActionHolder();
132132

133133
holder.icon = (ImageView) (row != null ? row.findViewById(R.id.actionIcon) : null);

cSploit/src/org/csploit/android/MainActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,8 +858,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
858858
holder.itemTitle.setTextColor(getResources().getColor((target.isConnected() ? R.color.app_color : R.color.gray_text)));
859859

860860
if (row != null && (getSharedPreferences("THEME", 0).getBoolean("isDark", false)))
861-
row.setBackground(getResources().getDrawable(R.drawable.card_background_dark));
862-
861+
row.setBackgroundResource(R.drawable.card_background_dark);
863862
holder.itemTitle.setTypeface(null, Typeface.NORMAL);
864863
holder.itemImage.setImageResource(target.getDrawableResourceId());
865864
holder.itemDescription.setText(target.getDescription());

cSploit/src/org/csploit/android/plugins/mitm/MITM.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public View getView(int position, View convertView, ViewGroup parent){
136136
LayoutInflater inflater = (LayoutInflater) MITM.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
137137
row = inflater.inflate(mLayoutId, parent, false);
138138
if (getSharedPreferences("THEME", 0).getBoolean("isDark", false))
139-
row.setBackground(getResources().getDrawable(R.drawable.card_background_dark));
139+
row.setBackgroundResource(R.drawable.card_background_dark);
140140
holder = new ActionHolder();
141141
holder.icon = (ImageView) (row != null ? row.findViewById(R.id.actionIcon) : null);
142142
holder.name = (TextView) (row != null ? row.findViewById(R.id.itemName) : null);

0 commit comments

Comments
 (0)