Skip to content

Commit

Permalink
removing the extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
filipkis committed Jan 29, 2014
1 parent 7d7243c commit ce4eaaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/se/kth/csc/iprog/dinnerplanner/android/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ protected void onCreate(Bundle savedInstanceState) {
// it must come before any call to findViewById method
setContentView(R.layout.activity_main);

// Get the model
DinnerModel model = ((DinnerPlannerApplication) this.getApplication()).getModel();

// Creating the view class
ExampleView mainView = new ExampleView(findViewById(R.id.example_view), model);
ExampleView mainView = new ExampleView(findViewById(R.id.example_view));

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ExampleView {

View view;

public ExampleView(View view, DinnerModel model) {
public ExampleView(View view) {

// store in the class the reference to the Android View
this.view = view;
Expand Down

0 comments on commit ce4eaaa

Please sign in to comment.