@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_view_dish_detail);

    ivDishPhoto = (ImageView) findViewById(R.id.imageview_dish_photo);
    tvDishName = (TextView) findViewById(R.id.textview_dish_name);
    tvDishDesc = (TextView) findViewById(R.id.textview_dish_desc);
    tvDishPrice = (TextView) findViewById(R.id.textview_dish_price);
    tvDishDiscount = (TextView) findViewById(R.id.textview_dish_discount);
    tvDishCategory = (TextView) findViewById(R.id.textview_dish_category);

    setUpToolbar();
    setUpData();
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    boolean loggedIn = PrefUtil.getBooleanPreference(SessionManager.LOGGED_IN, this);
    if (loggedIn) {
      Intent intent = new Intent(LoginActivity.this, MainActivity.class);
      intent.putExtra(NEED_VERIFY, true);
      startActivity(intent);
      finish();
    }

    setContentView(R.layout.activity_login);

    etUsername = (EditText) findViewById(R.id.etUsername);
    etPassword = (EditText) findViewById(R.id.etPassword);
    bLogin = (Button) findViewById(R.id.bLogin);
    bRegisterLink = (Button) findViewById(R.id.bRegisterLink);

    setUpToolbar();
    setUpButtons();
  }
 @Override
 protected void setUpToolbar() {
   super.setUpToolbar();
   String title = getResources().getString(R.string.title_activity_login);
   toolbar.setTitle(title);
 }