Skip to content

Commit

Permalink
always use english locale at month names
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbi committed Jun 17, 2016
1 parent f16e109 commit 64894e3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.joda.time.DateTime;

import java.util.List;
import java.util.Locale;

import butterknife.BindDimen;
import butterknife.BindView;
Expand Down Expand Up @@ -55,6 +56,7 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);
ButterKnife.bind(this);

Locale.setDefault(Locale.ENGLISH);
textColor = Helpers.adjustAlpha(Color.BLACK, Constants.HIGH_ALPHA);
weakTextColor = Helpers.adjustAlpha(Color.BLACK, Constants.LOW_ALPHA);
leftArrow.getDrawable().mutate().setColorFilter(textColor, PorterDuff.Mode.SRC_ATOP);
Expand Down Expand Up @@ -150,7 +152,7 @@ public void onClick(DialogInterface dialog, int id) {
private void hideDayPicker(DatePicker datePicker) {
final LinearLayout ll = (LinearLayout) datePicker.getChildAt(0);
final LinearLayout ll2 = (LinearLayout) ll.getChildAt(0);
ll2.getChildAt(0).setVisibility(View.GONE);
ll2.getChildAt(1).setVisibility(View.GONE);
}

@Override
Expand Down

0 comments on commit 64894e3

Please sign in to comment.