Replace Pane enum with class

This commit is contained in:
fkloft
2013-12-02 23:06:18 +01:00
parent 10b662d8c1
commit 40d25ad8ef
4 changed files with 98 additions and 109 deletions

View File

@@ -13,8 +13,6 @@ import android.widget.Toast;
import com.cradle.iitc_mobile.IITC_NavigationHelper.Pane;
import com.cradle.iitc_mobile.share.ShareActivity;
import java.util.Locale;
// provide communication between IITC script and android app
public class IITC_JSInterface {
// context of main activity
@@ -96,7 +94,7 @@ public class IITC_JSInterface {
public void run() {
Pane pane;
try {
pane = Pane.valueOf(id.toUpperCase(Locale.getDefault()));
pane = mIitc.getNavigationHelper().getPane(id);
} catch (IllegalArgumentException e) {
pane = Pane.MAP;
}