Use SAM
This commit is contained in:
@@ -12,7 +12,7 @@ compileOrder in Compile := CompileOrder.JavaThenScala
|
||||
|
||||
javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
|
||||
|
||||
scalacOptions += "-target:jvm-1.6"
|
||||
scalacOptions ++= Seq("-target:jvm-1.6", "-Xexperimental")
|
||||
|
||||
ndkJavah in Android := List()
|
||||
|
||||
|
||||
@@ -953,11 +953,7 @@ class Shadowsocks
|
||||
|
||||
new AlertDialog.Builder(this)
|
||||
.setCancelable(true)
|
||||
.setNegativeButton(getString(R.string.close), new DialogInterface.OnClickListener() {
|
||||
override def onClick(dialog: DialogInterface, id: Int) {
|
||||
dialog.cancel()
|
||||
}
|
||||
})
|
||||
.setNegativeButton(getString(R.string.close), (dialog: DialogInterface, id: Int) => dialog.cancel())
|
||||
.setView(image)
|
||||
.create()
|
||||
.show()
|
||||
|
||||
Reference in New Issue
Block a user