diff --git a/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Charts.java b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/ChartsFragment.java similarity index 97% rename from app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Charts.java rename to app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/ChartsFragment.java index 5758398..29af91d 100644 --- a/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Charts.java +++ b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/ChartsFragment.java @@ -49,7 +49,7 @@ import static com.herbron.moodl.MoodlBox.numberConformer; * Created by Tiji on 13/05/2018. */ -public class Charts extends Fragment implements CurrencyInfoUpdateNotifierInterface { +public class ChartsFragment extends Fragment implements CurrencyInfoUpdateNotifierInterface { private final static int HOUR = 0; private final static int DAY = 1; @@ -628,31 +628,31 @@ public class Charts extends Fragment implements CurrencyInfoUpdateNotifierInterf switch (timeIntervalSpinner.getSelectedItemPosition()) { case 0: - updateChartTab(Charts.HOUR, 1); + updateChartTab(ChartsFragment.HOUR, 1); break; case 1: - updateChartTab(Charts.HOUR, 3); + updateChartTab(ChartsFragment.HOUR, 3); break; case 2: - updateChartTab(Charts.DAY, 1); + updateChartTab(ChartsFragment.DAY, 1); break; case 3: - updateChartTab(Charts.DAY, 3); + updateChartTab(ChartsFragment.DAY, 3); break; case 4: - updateChartTab(Charts.WEEK, 11); + updateChartTab(ChartsFragment.WEEK, 11); break; case 5: - updateChartTab(Charts.MONTH, 1); + updateChartTab(ChartsFragment.MONTH, 1); break; case 6: - updateChartTab(Charts.MONTH, 3); + updateChartTab(ChartsFragment.MONTH, 3); break; case 7: - updateChartTab(Charts.MONTH, 6); + updateChartTab(ChartsFragment.MONTH, 6); break; case 8: - updateChartTab(Charts.YEAR, 1); + updateChartTab(ChartsFragment.YEAR, 1); break; } } diff --git a/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Informations.java b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/InformationFragment.java similarity index 99% rename from app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Informations.java rename to app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/InformationFragment.java index 5653191..88ba247 100644 --- a/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Informations.java +++ b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/InformationFragment.java @@ -26,7 +26,7 @@ import static com.herbron.moodl.MoodlBox.numberConformer; * Created by Tiji on 13/05/2018. */ -public class Informations extends Fragment { +public class InformationFragment extends Fragment { private Currency currency; private View view; diff --git a/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Transactions.java b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/TransactionsFragment.java similarity index 98% rename from app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Transactions.java rename to app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/TransactionsFragment.java index 8d09c26..192fb4f 100644 --- a/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Transactions.java +++ b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/TransactionsFragment.java @@ -34,7 +34,7 @@ import java.util.List; * Created by Tiji on 13/05/2018. */ -public class Transactions extends Fragment { +public class TransactionsFragment extends Fragment { private Currency currency; private View loadingFooter; @@ -280,7 +280,7 @@ public class Transactions extends Fragment { } }); } catch (NullPointerException e) { - Log.d("moodl", "Transactions do not need to be updated anymore"); + Log.d("moodl", "TransactionsFragment do not need to be updated anymore"); } } } diff --git a/app/src/main/java/com/herbron/moodl/DetailsActivityPagerAdapter.java b/app/src/main/java/com/herbron/moodl/DetailsActivityPagerAdapter.java index da76aec..271245f 100644 --- a/app/src/main/java/com/herbron/moodl/DetailsActivityPagerAdapter.java +++ b/app/src/main/java/com/herbron/moodl/DetailsActivityPagerAdapter.java @@ -4,9 +4,9 @@ import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; -import com.herbron.moodl.Activities.DetailsActivityFragments.Charts; -import com.herbron.moodl.Activities.DetailsActivityFragments.Informations; -import com.herbron.moodl.Activities.DetailsActivityFragments.Transactions; +import com.herbron.moodl.Activities.DetailsActivityFragments.ChartsFragment; +import com.herbron.moodl.Activities.DetailsActivityFragments.InformationFragment; +import com.herbron.moodl.Activities.DetailsActivityFragments.TransactionsFragment; /** * Created by Tiji on 13/05/2018. @@ -27,11 +27,11 @@ public class DetailsActivityPagerAdapter extends FragmentStatePagerAdapter { switch (position) { case 0: - return new Charts(); + return new ChartsFragment(); case 1: - return new Informations(); + return new InformationFragment(); case 2: - return new Transactions(); + return new TransactionsFragment(); default: return null; } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 25d563e..e45d473 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -79,7 +79,7 @@ Looking for trades… -- - + Drawer Dominance percentage Active cryptocurrencies