diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java index 63a455b..76bbb03 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java @@ -199,13 +199,11 @@ public class MainActivity extends ActionBarActivity { switch (currentFragmentId) { case HOME_FRAGMENT_ID: // switch to home fragment - setTitle("Panoramio search"); Log.d(CLASS_TAG, "Switching to home fragment"); final HomeFragment fragment = new HomeFragment(); switchFragment(fragment, HomeFragment.TAG); break; case WIKI_FRAGMENT_ID: - setTitle("Wiki search"); // switch to wiki fragment Log.d(CLASS_TAG, "Switching to wiki fragment"); switchFragment(new WikiLocationsFragment(), WikiLocationsFragment.TAG); diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/HomeFragment.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/HomeFragment.java index 7c10801..aef5c4e 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/HomeFragment.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/HomeFragment.java @@ -324,6 +324,7 @@ public class HomeFragment extends Fragment { @Override public void onResume() { super.onResume(); + getActivity().setTitle("Panoramio search"); Log.v(CLASS_TAG, "onResume"); updateLocationInfo(); } diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/WikiLocationsFragment.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/WikiLocationsFragment.java index f28150b..c6c6708 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/WikiLocationsFragment.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/WikiLocationsFragment.java @@ -144,6 +144,7 @@ public class WikiLocationsFragment extends Fragment { @Override public void onResume() { super.onResume(); + getActivity().setTitle("Wiki search"); updateLocationInfo(); fetchWikiLocations(); }