Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_order);
Toolbar menuToolbar = (Toolbar) findViewById(R.id.order_toolbar);

setSupportActionBar(menuToolbar);
getSupportActionBar().setTitle(getString(R.string.order_title));

Expand Down Expand Up @@ -111,8 +112,9 @@ public void onItemSelected(AdapterView<?> parent, View view, int position, long
case 2:
mSize = getString(R.string.tea_size_large);
break;

}
//update Total Cost TextView when changing the size
displayCost(calculatePrice());
}

// Because AdapterView is an abstract class, onNothingSelected must be defined
Expand Down Expand Up @@ -304,4 +306,4 @@ public void brewTea(View view) {

startActivity(intent);
}
}
}