From 2fdae995ed9e984addc763cef4beafa5bcfece53 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Thu, 4 Sep 2014 21:04:30 +0200 Subject: [PATCH] WeatherInformation Android: TODOs/doubts --- .../example/exampletdd/fragment/current/CurrentFragment.java | 10 ++++------ .../example/exampletdd/fragment/overview/OverviewFragment.java | 4 ++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java b/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java index 5bdd5fa..cc177ad 100644 --- a/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java +++ b/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java @@ -88,8 +88,6 @@ public class CurrentFragment extends Fragment { (WeatherInformationApplication) getActivity().getApplication(); final Current current = application.getCurrent(); - // TODO: Why don't I need mListState? - // TODO: Also check whether data is fresh (like I do on WindowsPhone 8) using data base if (current != null /* && dataIsFresh() */) { this.updateUI(current); @@ -103,8 +101,6 @@ public class CurrentFragment extends Fragment { task.execute(geocodingData); // TODO: make sure UI thread keeps running in parallel after that. I guess. } - - // TODO: Overview is doing things with mListState... Why not here? } @Override @@ -121,8 +117,6 @@ public class CurrentFragment extends Fragment { savedInstanceState.putSerializable("Current", current); } - // TODO: Why don't I need mListState? - super.onSaveInstanceState(savedInstanceState); } @@ -274,6 +268,10 @@ public class CurrentFragment extends Fragment { sunSetTimeView.setText(sunSetTime); } + // TODO: How could I show just one progress dialog when I have two fragments in tabs + // activity doing the same in background? + // I mean, if OverviewTask shows one progress dialog and CurrentTask does the same I will have + // have two progress dialogs... How may I solve this problem? I HATE ANDROID. private class CurrentTask extends AsyncTask { final CustomHTTPClient weatherHTTPClient; final ServiceParser weatherService; diff --git a/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java b/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java index 60af117..a326a1b 100644 --- a/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java +++ b/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java @@ -256,6 +256,10 @@ public class OverviewFragment extends ListFragment { } + // TODO: How could I show just one progress dialog when I have two fragments in tabs + // activity doing the same in background? + // I mean, if OverviewTask shows one progress dialog and CurrentTask does the same I will have + // have two progress dialogs... How may I solve this problem? I HATE ANDROID. private class OverviewTask extends AsyncTask { final CustomHTTPClient weatherHTTPClient; final ServiceParser weatherService; -- 2.1.4