From 754ffaa8f0c62350785c7d6fce3da33d8ab36f5f Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Tue, 18 Oct 2022 22:50:15 +0200 Subject: v1.0.1 0 - fix loading chart --- .../java/com/jopek/taupngamoni/ChartFragment.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'app/src') 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; } -- cgit v1.3.1