Skip to content

Commit

Permalink
[MaterialTimePicker] Refine AM/PM toggle logic
Browse files Browse the repository at this point in the history
Resolves #2803

GIT_ORIGIN_REV_ID=f5b301b86b8a91189b8199f924b8f837bd7d3fcd
PiperOrigin-RevId: 459256240
  • Loading branch information
pubiqq authored and hunterstich committed Jul 6, 2022
1 parent 15fa4db commit 0c56a45
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -108,8 +108,8 @@ public TimePickerView(Context context, @Nullable AttributeSet attrs, int defStyl
return;
}

int period = checkedId == R.id.material_clock_period_pm_button ? PM : AM;
if (onPeriodChangeListener != null) {
int period = checkedId == R.id.material_clock_period_pm_button ? PM : AM;
onPeriodChangeListener.onPeriodChange(period);
}
});
Expand Down

0 comments on commit 0c56a45

Please sign in to comment.