assets/src/RubotoBroadcastReceiver.java in ruboto-1.0.0 vs assets/src/RubotoBroadcastReceiver.java in ruboto-1.0.1
- old
+ new
@@ -10,20 +10,13 @@
public ScriptInfo getScriptInfo() {
return scriptInfo;
}
public THE_RUBOTO_CLASS() {
- this(null);
- }
-
- public THE_RUBOTO_CLASS(String name) {
super();
-
- if (name != null) {
- scriptInfo.setScriptName(name);
- if (JRubyAdapter.isInitialized()) {
- ScriptLoader.loadScript(this);
- }
+ scriptInfo.setRubyClassName(getClass().getSimpleName());
+ if (JRubyAdapter.isInitialized()) {
+ ScriptLoader.loadScript(this);
}
}
public void onReceive(android.content.Context context, android.content.Intent intent) {
try {