aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r--app/src/main/java/com/jopek/taupngamoni/ChartFragment.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/app/src/main/java/com/jopek/taupngamoni/ChartFragment.java b/app/src/main/java/com/jopek/taupngamoni/ChartFragment.java
index 2c0999b..33682df 100644
--- a/app/src/main/java/com/jopek/taupngamoni/ChartFragment.java
+++ b/app/src/main/java/com/jopek/taupngamoni/ChartFragment.java
@@ -118,7 +118,7 @@ public class ChartFragment extends Fragment {
// }
checkFrom = 0;
checkTo = 0;
- refreshChart();
+// refreshChart();
// cartesian.title("Trend of Sales of the Most Popular Products of ACME Corp.");
@@ -139,14 +139,15 @@ public class ChartFragment extends Fragment {
Log.d("maks", "onCreateView: ");
refreshChart();
});
- anyChartView.setVisibility(View.INVISIBLE);
- new android.os.Handler(Looper.getMainLooper()).postDelayed(
- () -> {
- anyChartView.setVisibility(View.VISIBLE);
- refreshChart();
- },
- 1500);
-
+// if (spinnerFromAdapter == null) {
+ anyChartView.setVisibility(View.INVISIBLE);
+ new android.os.Handler(Looper.getMainLooper()).postDelayed(
+ () -> {
+ anyChartView.setVisibility(View.VISIBLE);
+ refreshChart();
+ },
+ 1500);
+// }
return view;
}