Permalink
Browse files

Updated to 0.10.1.dev

  • Loading branch information...
1 parent b3ec819 commit 4d8296b4133cc0a6f9d6bfeceb0864bffb408301 @rscottm rscottm committed Dec 8, 2012
Showing with 2 additions and 17 deletions.
  1. +2 −17 src/org/ruboto/RubotoActivity.java
@@ -11,7 +11,6 @@
private final ScriptInfo scriptInfo = new ScriptInfo();
private String remoteVariable = null;
Bundle[] args;
- private Bundle configBundle = null;
public RubotoActivity setRemoteVariable(String var) {
remoteVariable = var;
@@ -40,26 +39,12 @@ public void onCreate(Bundle bundle) {
args = new Bundle[1];
args[0] = bundle;
- configBundle = getIntent().getBundleExtra("RubotoActivity Config");
-
+ Bundle configBundle = getIntent().getBundleExtra("Ruboto Config");
if (configBundle != null) {
if (configBundle.containsKey("Theme")) {
setTheme(configBundle.getInt("Theme"));
}
- if (configBundle.containsKey("ClassName")) {
- if (this.getClass().getName() == RubotoActivity.class.getName()) {
- scriptInfo.setRubyClassName(configBundle.getString("ClassName"));
- } else {
- throw new IllegalArgumentException("Only local Intents may set class name.");
- }
- }
- if (configBundle.containsKey("Script")) {
- if (this.getClass().getName() == RubotoActivity.class.getName()) {
- scriptInfo.setScriptName(configBundle.getString("Script"));
- } else {
- throw new IllegalArgumentException("Only local Intents may set script name.");
- }
- }
+ scriptInfo.setFromIntent(getIntent());
}
if (JRubyAdapter.isInitialized()) {

0 comments on commit 4d8296b

Please sign in to comment.