mirror of
https://github.com/playmusicexporter/playmusicexporter
synced 2024-05-16 02:16:42 +00:00
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:
parent
51d0ed4c7e
commit
57f721b6cf
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue