Skip to content

Commit

Permalink
Added annotations for onRequestPermissionsResult(), changed minimum A…
Browse files Browse the repository at this point in the history
…PI to level 9 (Android 2.3.3) and target to API level 25 (Android 7.1.1).
  • Loading branch information
arnowelzel committed Dec 20, 2016
1 parent 71707b5 commit c5ecc1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 8 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
compileSdkVersion 25
buildToolsVersion "25.0.2"

defaultConfig {
applicationId "de.arnowelzel.android.periodical"
minSdkVersion 8
targetSdkVersion 23
minSdkVersion 9
targetSdkVersion 25
versionCode 30
versionName "0.30"
}
Expand All @@ -23,8 +23,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

return void
}

dependencies {
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:support-v4:25.1.0'
compile 'com.android.support:support-annotations:25.1.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import android.widget.TextView;
import android.widget.Toast;
import android.widget.ViewFlipper;
import android.support.annotation.NonNull;

import java.text.SimpleDateFormat;
import java.util.Calendar;
Expand Down Expand Up @@ -450,7 +451,7 @@ public void onClick(DialogInterface dialog, int which) {
* Handle permission request
*/
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
final Context context = getApplicationContext();

// If the requested permission was granted by the user,
Expand Down

0 comments on commit c5ecc1a

Please sign in to comment.