Skip to content

Commit

Permalink
fix farvardin on select date crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ali77gh committed Mar 13, 2019
1 parent 686df0a commit 2cad09a
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 60 deletions.
29 changes: 29 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions .idea/dictionaries/ali.xml

This file was deleted.

10 changes: 3 additions & 7 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}

dependencies {
Expand Down
20 changes: 6 additions & 14 deletions uneversaldatetools/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,14 @@ android {
}
productFlavors {
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}

// for make .jar file
//task deleteJar(type: Delete) {
// delete 'libs/jars/universalDateTools.jar'
//}
//
//task createJar(type: Copy) {
// from('build/intermediates/bundles/release/')
// into('libs/jars/')
// include('classes.jar')
// rename('classes.jar', 'universalDateTools.jar')
//}
//
//createJar.dependsOn(deleteJar, build)


dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,22 @@ public void onDaySelectListener(int day, int monthPos) {

//this part is because last and next viewpager views render before scroll
try {
((CalenderViewFragment) mViewPagerAdapter.getItem(mDateSystem.getMonth() - 2)).Render();
try {
((CalenderViewFragment) mViewPagerAdapter.getItem(mDateSystem.getMonth() - 2)).Render();
} catch (RuntimeException e) {
Log.d("something bad happened", e.getMessage());
}

} catch (ArrayIndexOutOfBoundsException e) {
//whe we are in first pos (have no last pos)
}

try {
((CalenderViewFragment) mViewPagerAdapter.getItem(mDateSystem.getMonth())).Render();
try {
((CalenderViewFragment) mViewPagerAdapter.getItem(mDateSystem.getMonth())).Render();
} catch (RuntimeException e) {
Log.d("something bad happened", e.getMessage());
}
} catch (IndexOutOfBoundsException e) {
//whe we are in last pos (have no next pos)
}
Expand Down

0 comments on commit 2cad09a

Please sign in to comment.