Skip to content

Commit

Permalink
Merge pull request #1 from wdullaer/master
Browse files Browse the repository at this point in the history
Merge from Origin
  • Loading branch information
hearsilent authored Jun 5, 2019
2 parents b36aa00 + 059aae8 commit d1e660c
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Date Picker | Time Picker
The easiest way to add the Material DateTime Picker library to your project is by adding it as a dependency to your `build.gradle`
```groovy
dependencies {
implementation 'com.wdullaer:materialdatetimepicker:4.2.0'
implementation 'com.wdullaer:materialdatetimepicker:4.2.1'
}
```

Expand Down Expand Up @@ -243,7 +243,7 @@ This library depends on some androidx support libraries. Because the jvm allows
Using the following snippet in your apps `build.gradle` file you can exclude this library's transitive appcompat library dependency from being installed.

```groovy
implementation ('com.wdullaer:materialdatetimepicker:4.2.0') {
implementation ('com.wdullaer:materialdatetimepicker:4.2.1') {
exclude group: 'androidx.appcompat'
exclude group: 'androidx.recyclerview'
}
Expand Down
4 changes: 2 additions & 2 deletions README_ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Selector de fecha | Selector de tiempo
La forma más fácil de agregar a la Biblioteca la _Material DateTime Picker_ a su proyecto es agregarla como una dependencia `build.gradle`
```groovy
a sus dependencias{
implementation 'com.wdullaer:materialdatetimepicker:4.2.0'
implementation 'com.wdullaer:materialdatetimepicker:4.2.1'
}
```
Expand Down Expand Up @@ -244,7 +244,7 @@ puede desactivar la carga de la biblioteca de soporte para MaterialDateTimePicke
Usando el siguiente fragmento en el archivo `build.gradle` de su aplicación, puede excluir la posibilidad de que se instale la biblioteca de soporte transitivo de esta biblioteca.

```groovy
implementation ('com.wdullaer:materialdatetimepicker:4.2.0') {
implementation ('com.wdullaer:materialdatetimepicker:4.2.1') {
exclude group: 'androidx.appcompat'
exclude group: 'androidx.recyclerview'
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
classpath 'com.android.tools.build:gradle:3.4.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ org.gradle.jvmargs=-Xmx1536m
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=4.2.0
VERSION_CODE=51
VERSION_NAME=4.2.1
VERSION_CODE=52
GROUP=com.wdullaer

ANDROID_BUILD_MIN_SDK_VERSION=16
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ dependencies {
testImplementation 'com.pholser:junit-quickcheck-core:0.7'
testImplementation 'com.pholser:junit-quickcheck-generators:0.7'

androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
}

apply from: 'gradle-mvn-push.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ public void onCreate(Bundle savedInstanceState) {
final Activity activity = requireActivity();
activity.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
setStyle(AppCompatDialogFragment.STYLE_NO_TITLE, 0);
mCurrentView = UNINITIALIZED;
if (savedInstanceState != null) {
mCalendar.set(Calendar.YEAR, savedInstanceState.getInt(KEY_SELECTED_YEAR));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ public void setLocale(Locale locale) {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setStyle(AppCompatDialogFragment.STYLE_NO_TITLE, 0);
if (savedInstanceState != null && savedInstanceState.containsKey(KEY_INITIAL_TIME)
&& savedInstanceState.containsKey(KEY_IS_24_HOUR_VIEW)) {
mInitialTime = savedInstanceState.getParcelable(KEY_INITIAL_TIME);
Expand Down Expand Up @@ -671,7 +672,6 @@ affect the behaviour of the picker (in the unlikely event the user reconfigures
@Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {

int viewRes = mVersion == Version.VERSION_1 ? R.layout.mdtp_time_picker_dialog : R.layout.mdtp_time_picker_dialog_v2;
View view = inflater.inflate(viewRes, container,false);
KeyboardListener keyboardListener = new KeyboardListener();
Expand Down

0 comments on commit d1e660c

Please sign in to comment.