Skip to content

Commit

Permalink
Excessive button to show closed issues removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Motoaleks committed Dec 28, 2017
1 parent 6e2c675 commit 0bddafe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public static Intent createIntent(Repository repository, Milestone milestone, in

private Repository repository;
private Milestone milestone;
private ToggleButton closedIssues;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down Expand Up @@ -80,21 +79,6 @@ protected void onCreate(Bundle savedInstanceState) {
transaction.add(R.id.ms_issues, issuesFragment);

transaction.commit();

closedIssues = (ToggleButton) finder.find(R.id.tb_closed_issues);
closedIssues.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
IssueFilter filter = new IssueFilter(repository);
filter.setMilestone(milestone);
filter.setOpen(!b);
getIntent().putExtra(EXTRA_ISSUE_FILTER, filter);
IssuesFragment issuesFragment = new IssuesFragment();
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
transaction.replace(R.id.ms_issues, issuesFragment);
transaction.commit();
}
});
}

@Override
Expand Down
13 changes: 0 additions & 13 deletions app/src/main/res/layout/milestone_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@

</FrameLayout>

<ToggleButton
android:id="@+id/tb_closed_issues"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="false"
android:text="@string/issues_display_closed"
android:textAlignment="viewStart"
android:textAppearance="@style/TextAppearance.Design.Hint"
android:textOff="@string/issues_display_closed"
android:textOn="@string/issues_display_opened"
android:textSize="14sp" />


<FrameLayout
android:id="@+id/ms_issues"
Expand Down

0 comments on commit 0bddafe

Please sign in to comment.