if (mCandidates == null) {
mButtonLeftLayout = findViewById(R.id.candidate_left_parent);
mButtonLeft = findViewById(R.id.candidate_left);
if (mButtonLeft != null) {
mButtonLeft.setOnTouchListener(this);
}
mButtonRightLayout = findViewById(R.id.candidate_right_parent);
mButtonRight = findViewById(R.id.candidate_right);
if (mButtonRight != null) {
mButtonRight.setOnTouchListener(this);
}
mCandidates = (CandidateView) findViewById(R.id.candidates);
}