Code sorting
This commit is contained in:
parent
d79a76f13b
commit
e80c9f4046
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
@ -79,7 +79,7 @@
|
||||
<string name="trade_loading">Looking for trades…</string>
|
||||
<string name="default_value" translatable="false">--</string>
|
||||
|
||||
<!--Charts activity-->
|
||||
<!--ChartsFragment activity-->
|
||||
<string name="drawer">Drawer</string>
|
||||
<string name="dominance_percentage">Dominance percentage</string>
|
||||
<string name="active_cryptocurrencies">Active cryptocurrencies</string>
|
||||
|
Loading…
Reference in New Issue
Block a user