diff --git a/app/build.gradle b/app/build.gradle index 14c5a32..43a088f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,12 +1,12 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 25 - buildToolsVersion "25.0.3" + compileSdkVersion 26 + buildToolsVersion "26.0.1" defaultConfig { applicationId "stream.customalertsample" minSdkVersion 15 - targetSdkVersion 25 + targetSdkVersion 26 versionCode 1 versionName "1.0" vectorDrawables.useSupportLibrary true @@ -22,11 +22,12 @@ android { dependencies { repositories { maven { url 'https://jitpack.io' } + maven { url "https://maven.google.com" } } compile fileTree(include: ['*.jar'], dir: 'libs') compile project(':customalert') compile 'com.github.searchy2:CustomButton:1.2' - compile 'com.android.support:appcompat-v7:25.3.1' - compile 'com.android.support:design:25.3.1' + compile 'com.android.support:appcompat-v7:26.0.2' + compile 'com.android.support:design:26.0.2' } \ No newline at end of file diff --git a/app/src/main/java/stream/customalertapp/MainActivity.java b/app/src/main/java/stream/customalertapp/MainActivity.java index ce6694b..1480a97 100644 --- a/app/src/main/java/stream/customalertapp/MainActivity.java +++ b/app/src/main/java/stream/customalertapp/MainActivity.java @@ -116,6 +116,7 @@ public void onClick(View view) { .setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView adapterView, View view, int i, long l) { + CustomAlertDialogue.getInstance().dismiss(); Toast.makeText(mContext, "Selected " + i, Toast.LENGTH_SHORT).show(); } }) diff --git a/customalert/build.gradle b/customalert/build.gradle index 89686c6..ed972cf 100644 --- a/customalert/build.gradle +++ b/customalert/build.gradle @@ -2,15 +2,15 @@ apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' group='com.github.searchy2' -version = '1.6' +version = '1.7' android { - compileSdkVersion 25 - buildToolsVersion "25.0.3" + compileSdkVersion 26 + buildToolsVersion "26.0.1" defaultConfig { minSdkVersion 15 - targetSdkVersion 25 + targetSdkVersion 26 } buildTypes { release { @@ -21,7 +21,10 @@ android { } dependencies { + repositories { + maven { url "https://maven.google.com" } + } compile fileTree(include: ['*.jar'], dir: 'libs') - compile 'com.android.support:design:25.3.1' + compile 'com.android.support:design:26.0.2' }