|
@@ -192,13 +192,13 @@ public class HomeFragment extends Fragment {
|
|
|
mHomeTextSecurity.setTextColor(getResources().getColor(R.color.holo_dark_green));
|
|
|
break;
|
|
|
case PAST_THREAT:
|
|
|
- mHomeTextAttacks.setText(totalAttacks + (totalAttacks == 1 ? R.string.attack : R.string.attacks) + R.string.logged);
|
|
|
+ mHomeTextAttacks.setText(totalAttacks + (totalAttacks == 1 ? getResources().getString(R.string.attack) : getResources().getString(R.string.attacks)) + getResources().getString(R.string.logged));
|
|
|
mHomeTextSecurity.setText(R.string.insecure);
|
|
|
mHomeTextAttacks.setTextColor(getResources().getColor(R.color.holo_yellow));
|
|
|
mHomeTextSecurity.setTextColor(getResources().getColor(R.color.holo_yellow));
|
|
|
break;
|
|
|
case LIVE_THREAT:
|
|
|
- mHomeTextAttacks.setText(totalAttacks + (totalAttacks == 1 ? R.string.attack : R.string.attacks) + R.string.recorded);
|
|
|
+ mHomeTextAttacks.setText(totalAttacks + (totalAttacks == 1 ? getResources().getString(R.string.attack) : getResources().getString(R.string.attacks)) + getResources().getString(R.string.recorded));
|
|
|
mHomeTextSecurity.setText(R.string.insecure);
|
|
|
mHomeTextAttacks.setTextColor(getResources().getColor(R.color.holo_red));
|
|
|
mHomeTextSecurity.setTextColor(getResources().getColor(R.color.holo_red));
|