From 1f022a048eeb62dc68cf3bb8b671aa6cd1a54907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= Date: Sat, 17 Sep 2016 11:26:42 +0200 Subject: [PATCH] Title fixing. --- app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java | 2 -- .../pl/tpolgrabia/urbanexplorer/fragments/HomeFragment.java | 1 + .../urbanexplorer/fragments/WikiLocationsFragment.java | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) 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(); }