diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 8d2df47..136ea7b 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -3,8 +3,9 @@
diff --git a/app/app.iml b/app/app.iml
index 56780d8..75a8a0c 100644
--- a/app/app.iml
+++ b/app/app.iml
@@ -12,10 +12,7 @@
-
-
- generateDebugAndroidTestSources
generateDebugSources
@@ -28,7 +25,7 @@
-
+
@@ -50,6 +47,15 @@
+
+
+
+
+
+
+
+
+
@@ -57,6 +63,7 @@
+
@@ -64,60 +71,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
+
-
+
+
+
-
-
+
+
+
-
-
-
+
-
+
+
+
+
+
-
-
+
+
diff --git a/app/build.gradle b/app/build.gradle
index ed8ef4b..aa9e554 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,25 +1,20 @@
apply plugin: 'com.android.application'
android {
- compileSdkVersion 23
- buildToolsVersion "23.0.3"
+ compileSdkVersion 24
+ buildToolsVersion "24.0.0"
defaultConfig {
applicationId "org.kore.kolabnotes.android"
minSdkVersion 16
- targetSdkVersion 23
- versionCode 76
- versionName "2.1.2"
+ targetSdkVersion 24
+ versionCode 77
+ versionName "2.2.0"
//Running test
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
+
packagingOptions {
exclude "META-INF/LICENSE.txt"
}
@@ -41,13 +36,13 @@ dependencies {
// Add dependency for UI test
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
androidTestCompile 'com.android.support.test:runner:0.4.1'
- androidTestCompile 'com.android.support:support-annotations:23.2.1'
+ androidTestCompile 'com.android.support:support-annotations:24.2.0'
compile 'com.github.konradrenner:kolabnotes-java:3.3.4'
compile 'jp.wasabeef:richeditor-android:1.2.0'
- compile 'com.android.support:support-v4:23.2.1'
- compile 'com.android.support:appcompat-v7:23.2.1'
- compile 'com.android.support:recyclerview-v7:23.2.1'
- compile 'com.android.support:cardview-v7:23.2.1'
- compile 'com.android.support:design:23.2.1'
+ compile 'com.android.support:support-v4:24.2.0'
+ compile 'com.android.support:appcompat-v7:24.2.0'
+ compile 'com.android.support:recyclerview-v7:24.2.0'
+ compile 'com.android.support:cardview-v7:24.2.0'
+ compile 'com.android.support:design:24.2.0'
}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index db43de3..11f7dec 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -33,6 +33,7 @@
+
notes) {
@Override
public void onClick(View v) {
- if (listener != null) {
+ if (listener != null && getAdapterPosition() >= 0) {
ViewParent parent = v.getParent();
if(parent instanceof RecyclerView){
RecyclerView recyclerView = (RecyclerView)parent;
diff --git a/build.gradle b/build.gradle
index 87a7831..658a5de 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,7 +7,7 @@ buildscript {
maven { url "https://jitpack.io" }
}
dependencies {
- classpath 'com.android.tools.build:gradle:1.3.0'
+ classpath 'com.android.tools.build:gradle:2.1.3'
}
}
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 0c71e76..9fe22f4 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Wed Apr 10 15:27:10 PDT 2013
+#Fri Aug 26 09:37:10 CEST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip