Преглед на файлове

removed "logged" string from home fragment

Alexander Brakowski преди 10 години
родител
ревизия
064820beca

+ 3 - 0
src/de/tudarmstadt/informatik/hostage/dao/ProfileManager.java

@@ -132,6 +132,8 @@ public class ProfileManager {
 
 	public void randomizeProtocols(Profile profile){
 		LinkedList<String> protocols = new LinkedList<String>(Arrays.asList(MainActivity.getContext().getResources().getStringArray(R.array.protocols)));
+		protocols.remove("GHOST");
+
 		profile.mActiveProtocols.clear();
 
 		Random rand = new Random();
@@ -364,6 +366,7 @@ public class ProfileManager {
 		);
 
 		randomProfile.mIsRandom = true;
+		randomProfile.mActivated = true;
 
 		this.addProfile(randomProfile, false);
 

+ 1 - 1
src/de/tudarmstadt/informatik/hostage/ui2/fragment/HomeFragment.java

@@ -180,7 +180,7 @@ public class HomeFragment extends Fragment {
 					mHomeTextSecurity.setTextColor(getResources().getColor(R.color.holo_dark_green));
 					break;
 				case PAST_THREAT:
-					mHomeTextAttacks.setText(totalAttacks + (totalAttacks == 1 ? getResources().getString(R.string.attack) : getResources().getString(R.string.attacks)) + getResources().getString(R.string.logged));
+					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_yellow));
 					mHomeTextSecurity.setTextColor(getResources().getColor(R.color.holo_yellow));