Switched to Java 1.8, enabled JACK

I made this change to be able to use lambdas, which saves a lot of code, since android development heavily relies on anonymous classes.
This commit is contained in:
Jan Christian Grünhage 2017-01-14 17:00:23 +01:00
parent 51d0ed4c7e
commit 57f721b6cf
Signed by: jcgruenhage
GPG key ID: 321A67D9EE8BC3E1
2 changed files with 10 additions and 7 deletions

View file

@ -36,6 +36,10 @@ android {
versionCode 103
versionName '0.9.1'
vectorDrawables.useSupportLibrary = true
jackOptions {
enabled true
}
}
buildTypes {
release {
@ -43,6 +47,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
dependencies {
@ -53,4 +61,5 @@ dependencies {
compile 'com.android.support:support-v4:25.1.0'
compile 'com.android.support:design:25.1.0'
compile 'com.android.support:support-vector-drawable:25.1.0'
compile "com.github.paolorotolo:appintro:4.1.0"
}

View file

@ -176,13 +176,7 @@ public class MusicContainerListActivity extends AppCompatActivity
builder.setTitle(R.string.dialog_storage_access_denied_title);
builder.setMessage(R.string.dialog_storage_access_denied);
builder.setCancelable(false);
builder.setPositiveButton(R.string.text_okay, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// Close the app
MusicContainerListActivity.this.finish();
}
});
builder.setPositiveButton(R.string.text_okay, (dialog, which) -> MusicContainerListActivity.this.finish());
builder.show();
}