Title fixing.
parent
fdb62e6fca
commit
1f022a048e
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -144,6 +144,7 @@ public class WikiLocationsFragment extends Fragment {
|
|||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
getActivity().setTitle("Wiki search");
|
||||
updateLocationInfo();
|
||||
fetchWikiLocations();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue