Skip to content

Commit

Permalink
sorting and time offsets completely decoupled
Browse files Browse the repository at this point in the history
  • Loading branch information
teddywilson committed Jul 10, 2017
1 parent 10839f6 commit 9e0568f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import java.util.ArrayList;
import java.util.List;


public class SpruceActivity extends AppCompatActivity
implements ViewFragment.OnParentAndChildCreationListener {

Expand All @@ -70,7 +71,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
}

sortDropDown = (Spinner) findViewById(R.id.sort_selection);
ArrayAdapter<CharSequence> spinnerAdapter = ArrayAdapter.createFromResource(this,
final ArrayAdapter<CharSequence> spinnerAdapter = ArrayAdapter.createFromResource(this,
R.array.sort_functions,
R.layout.spinner_item);
spinnerAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ public List<SpruceTimedView> getViewListWithTimeOffsets(ViewGroup parent, List<V

@Override
public void sortChildren(ViewGroup parent, List<View> children) {
// Do nothing
// Do nothing, as the original order is maintained
}
}

0 comments on commit 9e0568f

Please sign in to comment.