public static void switchLobFinish(String paramString1, final String paramString2) {
   Log.v("AppHelper", "in native.switchLobFinish: " + paramString1);
   application.runOnUiThread(
       new Runnable() {
         public void run() {
           View localView = null;
           if (val$actionLob.startsWith("card")) {
             localView = AppHelper.application.findViewById(2131230847);
           }
           while (localView != null) {
             Log.v("AppHelper", "toLob not null: " + localView.toString());
             AppHelper.application.clearLastCarpet();
             AppHelper.application.setNextCarpet(paramString2);
             AppHelper.application.handleLob(localView.findViewById(2131230873));
             return;
             if (val$actionLob.startsWith("bank")) {
               localView = AppHelper.application.findViewById(2131230848);
             } else if ((val$actionLob.startsWith("360"))
                 || (val$actionLob.startsWith("threesixty"))) {
               localView = AppHelper.application.findViewById(2131230849);
             }
           }
           EnterpriseMobileBanking.setAuthenticated(false);
           AppHelper.application.returnToHome(AppHelper.application.findViewById(2131230753));
         }
       });
 }
 public static void forceHide()
 {
   try
   {
     Log.d("BusyJSI", "forceHide");
     if (spinner.isShowing())
     {
       AppHelper.runOnUiThread(new Runnable()
       {
         public void run()
         {
           BusyJSI.spinner.setOnCancelListener(null);
           BusyJSI.spinner.hide();
         }
       });
       waitingToHide = false;
     }
     return;
   }
   finally
   {
     localObject = finally;
     throw ((Throwable)localObject);
   }
 }
 private static void switchLob(String paramString1, String paramString2) {
   if (showingMenu()) {
     WebView localWebView = getAppView();
     if (localWebView != null) {
       application.handleNavigation(localWebView.getRootView());
     }
   }
   Log.v("AppHelper", "in SwitchLOB: " + paramString2);
   logoutUser(paramString1, paramString2);
 }
 public static void setApplicationLink(EnterpriseMobileBanking paramEnterpriseMobileBanking) {
   application = paramEnterpriseMobileBanking;
   application.getWindowManager().getDefaultDisplay().getMetrics(metrics);
   Log.d("AppHelper", "Density: " + metricswidthPixels);
   myDensity = metricswidthPixels / 320.0F;
   if (gothicFace == null) {
     gothicFace =
         Typeface.createFromAsset(application.getAssets(), "fonts/Trade-Gothic-LT-Bold.ttf");
   }
 }
 public static void logoutUser(String paramString1, String paramString2) {
   Log.v("AppHelper", "in logoutUser: "******""))) {
     NativeCache.staticWrite(paramString1, "1");
   }
   if (isAuthenticated()) {
     sendJavascript("lobDidDisappear( '" + paramString2 + "' );");
     return;
   }
   switchLobFinish(paramString2);
 }
 public static void setSignOut(boolean paramBoolean) {
   Log.d("AppHelper", "Signout: " + paramBoolean);
   View localView = application.findViewById(2131230895);
   localView.setEnabled(paramBoolean);
   Drawable localDrawable = localView.getBackground();
   if (paramBoolean) {}
   for (int i = 255; ; i = 79) {
     localDrawable.setAlpha(i);
     localView.postInvalidate();
     return;
   }
 }
 private void buildSpinner()
 {
   if (spinner == null)
   {
     Log.d("BusyJSI", "Building Spinner");
     spinner = new ProgressDialog(AppHelper.getAppView().getContext());
     spinner.setIndeterminate(true);
     spinner.setCancelable(true);
     spinner.setCanceledOnTouchOutside(false);
     spinner.setMessage(AppHelper.getAppView().getContext().getString(2131296505));
   }
 }
 public void show(boolean paramBoolean)
 {
   try
   {
     Log.d("BusyJSI", "Show called with " + paramBoolean);
     forceShow(paramBoolean);
     return;
   }
   finally
   {
     localObject = finally;
     throw ((Throwable)localObject);
   }
 }
 public void show()
 {
   try
   {
     Log.d("BusyJSI", "Show called");
     worklightShow();
     return;
   }
   finally
   {
     localObject = finally;
     throw ((Throwable)localObject);
   }
 }
 public void hide()
 {
   try
   {
     Log.d("BusyJSI", "hide called");
     if (!waitingToHide)
     {
       AppHelper.getAppView().postDelayed(hideTask, 200L);
       waitingToHide = true;
     }
     return;
   }
   finally
   {
     localObject = finally;
     throw ((Throwable)localObject);
   }
 }
 public static void supressClick(boolean paramBoolean) {
   Log.d("AppHelper", "Supressing: " + paramBoolean);
   WebView localWebView = getAppView();
   if (localWebView != null) {
     if (!paramBoolean) {
       break label51;
     }
   }
   label51:
   for (View.OnClickListener local7 =
           new View.OnClickListener() {
             public void onClick(View paramAnonymousView) {}
           };
       ;
       local7 = null) {
     localWebView.setOnClickListener(local7);
     return;
   }
 }
 public static void forceShow(boolean paramBoolean)
 {
   try
   {
     Log.d("BusyJSI", "forceShow Cancelable:" + paramBoolean);
     AppHelper.getAppView().removeCallbacks(hideTask);
     waitingToHide = false;
     spinner.setCancelable(paramBoolean);
     AppHelper.runOnUiThread(new Runnable()
     {
       public void run()
       {
         BusyJSI.spinner.show();
       }
     });
     Thread.yield();
     return;
   }
   finally
   {
     localObject = finally;
     throw ((Throwable)localObject);
   }
 }
 public static boolean handleNative(String paramString) {
   int j = 8;
   int k = 0;
   paramString = paramString.toLowerCase();
   boolean bool = paramString.startsWith("cmd:");
   Log.d("AppHelper", "handleNative: " + paramString);
   if (bool) {
     paramString = paramString.replace("cmd:", "");
     if (!paramString.startsWith("switch:")) {
       break label324;
     }
     Log.d("AppHelper", "Switch command found");
     str = paramString.replace("switch:", "");
     localObject = NativeCache.staticRead(application.getString(2131296502));
     i = k;
     if (EnterpriseMobileBanking.getAuthenticated()) {
       if (localObject != null) {
         i = k;
         if (((String) localObject).equals("1")) {}
       } else {
         i = 1;
       }
     }
     localStringBuilder =
         new StringBuilder()
             .append("authed: ")
             .append(EnterpriseMobileBanking.getAuthenticated())
             .append(" -- ");
     paramString = (String) localObject;
     if (localObject == null) {
       paramString = "NULL";
     }
     Log.d("AppHelper", paramString);
     if (!str.startsWith("confirmation:")) {
       break label269;
     }
     paramString = str.replace("confirmation:", "");
     Log.d("AppHelper", "Calling for confirmation: " + paramString);
     switchLob("confirmSwitch", paramString);
   }
   label269:
   label324:
   while (!paramString.startsWith("contact:")) {
     for (; ; ) {
       String str;
       StringBuilder localStringBuilder;
       Log.v("AppHelper", "isNative: " + bool);
       return bool;
       if (i != 0) {
         promptForLogout(application.getString(2131296502), str);
       } else {
         Log.d("AppHelper", "Going to switchLob: " + str);
         switchLob(str);
       }
     }
   }
   hideMenu();
   paramString = paramString.replace("contact:", "");
   Log.d("AppHelper", "Action: " + paramString);
   application.initializeContactUs();
   application.findViewById(2131230882).setVisibility(0);
   application.hideBackButton();
   Object localObject = application.findViewById(2131230777);
   if ((!paramString.equalsIgnoreCase("360")) && (!paramString.equalsIgnoreCase("threesixty"))) {}
   for (int i = 0; ; i = 8) {
     ((View) localObject).setVisibility(i);
     localObject = application.findViewById(2131230789);
     if (!paramString.equalsIgnoreCase("360")) {
       i = j;
       if (!paramString.equalsIgnoreCase("threesixty")) {}
     } else {
       i = 0;
     }
     ((View) localObject).setVisibility(i);
     break;
   }
 }
 public void run() {
   Log.d("NatBut", "setOn: " + this$0.imgName);
   this$0.button.setSelected(val$on);
 }
 public void worklightShow()
 {
   Log.d("BusyJSI", "worklightShow");
   forceShow();
 }
 public void worklightHide()
 {
   Log.d("BusyJSI", "worklightHide");
   forceHide();
 }