Fix HelpCallback

This commit is contained in:
Mygod
2017-01-23 03:43:23 +08:00
parent 6fb7330e36
commit b3bab982a8
4 changed files with 28 additions and 22 deletions
@@ -13,6 +13,8 @@ import android.content.Intent
trait HelpCallback extends HelpActivity {
def produceHelpMessage(options: PluginOptions): CharSequence
override protected def onInitializePluginOptions(options: PluginOptions): Unit = setResult(Activity.RESULT_OK,
new Intent().putExtra(PluginContract.EXTRA_HELP_MESSAGE, produceHelpMessage(options)))
override protected def onInitializePluginOptions(options: PluginOptions) {
setResult(Activity.RESULT_OK, new Intent().putExtra(PluginContract.EXTRA_HELP_MESSAGE, produceHelpMessage(options)))
finish()
}
}