Commit a57c06e3 authored by Mygod's avatar Mygod

Use SAM

parent 3605e18d
...@@ -12,7 +12,7 @@ compileOrder in Compile := CompileOrder.JavaThenScala ...@@ -12,7 +12,7 @@ compileOrder in Compile := CompileOrder.JavaThenScala
javacOptions ++= Seq("-source", "1.6", "-target", "1.6") javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
scalacOptions += "-target:jvm-1.6" scalacOptions ++= Seq("-target:jvm-1.6", "-Xexperimental")
ndkJavah in Android := List() ndkJavah in Android := List()
......
...@@ -953,11 +953,7 @@ class Shadowsocks ...@@ -953,11 +953,7 @@ class Shadowsocks
new AlertDialog.Builder(this) new AlertDialog.Builder(this)
.setCancelable(true) .setCancelable(true)
.setNegativeButton(getString(R.string.close), new DialogInterface.OnClickListener() { .setNegativeButton(getString(R.string.close), (dialog: DialogInterface, id: Int) => dialog.cancel())
override def onClick(dialog: DialogInterface, id: Int) {
dialog.cancel()
}
})
.setView(image) .setView(image)
.create() .create()
.show() .show()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment