Unverified Commit b64dd245 authored by Mygod's avatar Mygod Committed by GitHub

Fixes #2391

parent 3f25eace
...@@ -30,7 +30,7 @@ import androidx.appcompat.app.AppCompatActivity ...@@ -30,7 +30,7 @@ import androidx.appcompat.app.AppCompatActivity
*/ */
abstract class OptionsCapableActivity : AppCompatActivity() { abstract class OptionsCapableActivity : AppCompatActivity() {
protected fun pluginOptions(intent: Intent = this.intent) = try { protected fun pluginOptions(intent: Intent = this.intent) = try {
PluginOptions(intent.getStringExtra(PluginContract.EXTRA_OPTIONS)) PluginOptions("", intent.getStringExtra(PluginContract.EXTRA_OPTIONS))
} catch (exc: IllegalArgumentException) { } catch (exc: IllegalArgumentException) {
Toast.makeText(this, exc.message, Toast.LENGTH_SHORT).show() Toast.makeText(this, exc.message, Toast.LENGTH_SHORT).show()
PluginOptions() PluginOptions()
......
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