Skip to content

Commit

Permalink
Fix sort error
Browse files Browse the repository at this point in the history
  • Loading branch information
19lmyers committed Apr 15, 2018
1 parent 3ec19af commit d9f5e09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class TeamInfoViewPagerAdapter extends FragmentPagerAdapter {
Expand All @@ -47,6 +48,8 @@ public TeamInfoViewPagerAdapter(final FragmentManager fm, List<ScoutData> dataLi
tabs = new ArrayList<>();
matches = dataList;

Collections.sort(matches, (o1, o2) -> Integer.compare(o1.getMatchNumber(), o2.getMatchNumber()));

TeamInfoFragment teamInfo = new TeamInfoFragment();

Bundle args = new Bundle();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected void onCreate(Bundle savedInstanceState) {

if (user == null) {
super.onCreate(savedInstanceState);
//TODO show first run dialog
//TODO show first run dialog?

startActivityForResult(AuthUI.getInstance()
.createSignInIntentBuilder()
Expand All @@ -73,11 +73,12 @@ protected void onCreate(Bundle savedInstanceState) {
}

setTheme(R.style.ThunderScout_BaseTheme_ActionBar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);

super.onCreate(savedInstanceState);
setContentView(R.layout.activity_account_settings);

getSupportActionBar().setDisplayHomeAsUpEnabled(true);

TextView nameView = findViewById(R.id.name);
nameView.setText(user.getDisplayName());

Expand Down

0 comments on commit d9f5e09

Please sign in to comment.