diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/BlackList.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/BlackList.java index ddaa7b1..8eb3dfb 100644 --- a/app/src/main/java/com/uam/wmi/findmytutor/activity/BlackList.java +++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/BlackList.java @@ -104,11 +104,11 @@ public class BlackList extends AppCompatActivity { .create(UserService.class); if (PrefUtils.isBlackListing(this)){ - aSwitch.setText(getString(R.string.action_black_list) +" ON"); + aSwitch.setText(getString(R.string.action_black_list) + " " +getString(R.string.on)); aSwitch.setChecked(true); handleChangeRequest(true); }else{ - aSwitch.setText(getString(R.string.action_black_list) +" OFF"); + aSwitch.setText(getString(R.string.action_black_list) + " " +getString(R.string.off) ); aSwitch.setChecked(false); handleChangeRequest(false); } diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/UsersListFragment.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/UsersListFragment.java index 2f5240c..7837ce8 100644 --- a/app/src/main/java/com/uam/wmi/findmytutor/activity/UsersListFragment.java +++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/UsersListFragment.java @@ -229,6 +229,7 @@ public class UsersListFragment extends Fragment { fragmentTransaction.hide(usersListFragment); fragmentTransaction.commit(); ((MapActivity) getActivity()).searchUser(user.getFirstName()); + ((MapActivity) getActivity()).updateNavigationBarState(); /* List list = new ArrayList(); list.add(user); diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/WhiteList.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/WhiteList.java index c767af3..f471947 100644 --- a/app/src/main/java/com/uam/wmi/findmytutor/activity/WhiteList.java +++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/WhiteList.java @@ -88,11 +88,11 @@ public class WhiteList extends AppCompatActivity { .create(UserService.class); if (PrefUtils.isWhiteListing(this)) { - aSwitch.setText(getString(R.string.action_white_list) + " ON"); + aSwitch.setText(getString(R.string.action_white_list) +" "+getString(R.string.on) ); aSwitch.setChecked(true); handleChangeRequest(true); } else { - aSwitch.setText(getString(R.string.action_white_list) + " OFF"); + aSwitch.setText(getString(R.string.action_white_list) +" "+getString(R.string.off) ); aSwitch.setChecked(false); handleChangeRequest(false); } diff --git a/app/src/main/res/layout/activity_black_list.xml b/app/src/main/res/layout/activity_black_list.xml index b4c9188..60c0e30 100644 --- a/app/src/main/res/layout/activity_black_list.xml +++ b/app/src/main/res/layout/activity_black_list.xml @@ -40,7 +40,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" - android:text="Block the users" + android:text="@string/block_the_users" android:textSize="15sp"/> Użytkownik został dodany! Użytkownik usunięty! - + Piętro + Zablokuj użytkowników + Bądź dostępny dla użytkowników diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 93b7b9a..cc45df8 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -222,9 +222,9 @@ User profile Remove Manual location TutorTab - Do you want to save this localization? - Save! - Cancel! + Manual localization + Save + Cancel Your marker will disappear in next couple minutes Manual Locations selected! Location saved! @@ -342,7 +342,7 @@ Network Error ! Search response is empty! - Insert a name for this localization. + Name the localization Online Offline Inactive @@ -351,6 +351,9 @@ User has been added! User removed! + Floor + Block the users + Be visible for these users ScrollingActivity "Material is the metaphor.\n\n"