Code example for ContextThemeWrapper

0
		if(mTime!=-1l)
		{ 
			calendar.setTimeInMillis(mTime);
		} 
		 
		ContextThemeWrapper context = new ContextThemeWrapper(getActivity(), getTheme(true));
		FixedTimePickerDialog dialog = new FixedTimePickerDialog(calendar, context, this);
		return dialog;
	} 
	 
	 
	@Override 
	public void onTimeSet(TimePicker view, int hour, int minute)
	{ 
		mListener.onDialogPositiveClick(TimePickerDialogFragment.this, hour, minute);
	} 
	 
	 
	private int getTheme(boolean light)
	{ 
		if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH)