public void onCreate(Bundle paramBundle) {
   super.onCreate(paramBundle);
   PreferenceManager.getDefaultSharedPreferences(BlinkApp.getApp().getApplicationContext())
       .edit()
       .putInt("onboard_sequence", 6)
       .commit();
   if (getArguments() != null) {
     this.mSectionNumber = getArguments().getInt("arg_section_number");
     this.mSSID = getArguments().getString("arg_ssid");
     this.mEncryption = getArguments().getString("arg_encryption");
   }
 }
 public void onCreate(Bundle paramBundle) {
   super.onCreate(paramBundle);
   PreferenceManager.getDefaultSharedPreferences(BlinkApp.getApp().getApplicationContext())
       .edit()
       .putInt("onboard_sequence", 4)
       .commit();
   if (getArguments() != null) {
     this.mSectionNumber = getArguments().getInt("arg_section_number");
     this.mAccessPoints =
         ((AccessPoints)
             new Gson()
                 .fromJson(getArguments().getString("AccessPoints", ""), AccessPoints.class));
   }
 }
 public static Onboard_6_Enter_WiFi_Credentials_Fragment newInstance(int paramInt) {
   Onboard_6_Enter_WiFi_Credentials_Fragment localOnboard_6_Enter_WiFi_Credentials_Fragment =
       new Onboard_6_Enter_WiFi_Credentials_Fragment();
   Object localObject =
       PreferenceManager.getDefaultSharedPreferences(BlinkApp.getApp().getApplicationContext());
   String str1 = ((SharedPreferences) localObject).getString("arg_ssid", "");
   String str2 = ((SharedPreferences) localObject).getString("arg_encryption", "");
   localObject = new Bundle();
   ((Bundle) localObject).putInt("arg_section_number", paramInt);
   ((Bundle) localObject).putString("arg_ssid", str1);
   ((Bundle) localObject).putString("arg_encryption", str2);
   localOnboard_6_Enter_WiFi_Credentials_Fragment.setArguments((Bundle) localObject);
   return localOnboard_6_Enter_WiFi_Credentials_Fragment;
 }
 public static Onboard_4_Successful_Connect_Fragment newInstance(int paramInt) {
   Onboard_4_Successful_Connect_Fragment localOnboard_4_Successful_Connect_Fragment =
       new Onboard_4_Successful_Connect_Fragment();
   Object localObject =
       PreferenceManager.getDefaultSharedPreferences(BlinkApp.getApp().getApplicationContext());
   String str = "";
   if (((SharedPreferences) localObject).contains("AccessPoints")) {
     str = ((SharedPreferences) localObject).getString("AccessPoints", "");
   }
   localObject = new Bundle();
   ((Bundle) localObject).putInt("arg_section_number", paramInt);
   ((Bundle) localObject).putString("AccessPoints", str);
   localOnboard_4_Successful_Connect_Fragment.setArguments((Bundle) localObject);
   return localOnboard_4_Successful_Connect_Fragment;
 }
  private void setAccessPoint() {
    this.mSSID = this.mSSIDEntry.getText().toString();
    this.mPassPhrase = this.mPassPhraseEntry.getText().toString();
    SetSSIDRequest localSetSSIDRequest = new SetSSIDRequest();
    localSetSSIDRequest.setDns("name");
    localSetSSIDRequest.setDomain(BlinkApp.getApp().getDnsSubdomain());
    Object localObject = new SetSSIDRequest.SSId[1];
    localObject[0] = new SetSSIDRequest.SSId();
    localObject[0].setSsid(this.mSSID);
    localObject[0].setPassword(this.mPassPhrase);
    localObject[0].setEncryption(this.mEncryption);
    localSetSSIDRequest.setSsids((SetSSIDRequest.SSId[]) localObject);
    localObject = new HashMap();
    ((HashMap) localObject).put("Cookie", BlinkApp.getApp().getLoginAuthToken());
    BlinkApp.getApp().setOnboardingUrl("http://172.16.97.199");
    BlinkAPI.BlinkOnboardingRequest(
        null,
        (Map) localObject,
        localSetSSIDRequest,
        new BlinkAPI.BlinkAPICallback() {
          public void onError(BlinkError paramAnonymousBlinkError) {
            BlinkApp.getApp().setOnboardingUrl(null);
            if ((Onboard_6_Enter_WiFi_Credentials_Fragment.this.getActivity() == null)
                || (Onboard_6_Enter_WiFi_Credentials_Fragment.this.mListener == null)
                || (Onboard_6_Enter_WiFi_Credentials_Fragment.this.isDetached())) {}
            for (; ; ) {
              return;
              if (Onboard_6_Enter_WiFi_Credentials_Fragment.this.getActivity() != null) {
                new AlertDialog.Builder(
                        Onboard_6_Enter_WiFi_Credentials_Fragment.this.getActivity())
                    .setTitle("Error")
                    .setMessage("Could not connect to WiFi")
                    .setPositiveButton(
                        2131099891,
                        new DialogInterface.OnClickListener() {
                          public void onClick(
                              DialogInterface paramAnonymous2DialogInterface,
                              int paramAnonymous2Int) {
                            paramAnonymous2DialogInterface =
                                Onboard_5_Show_WiFi_Fragment.newInstance(5);
                            Onboard_6_Enter_WiFi_Credentials_Fragment.this.mListener
                                .onFragmentInteraction(
                                    Onboard_6_Enter_WiFi_Credentials_Fragment.this.mSectionNumber,
                                    BaseFragment.OnFragmentInteractionListener.InteractionAction
                                        .REPLACE_FRAGMENT,
                                    paramAnonymous2DialogInterface);
                          }
                        })
                    .create()
                    .show();
              }
            }
          }

          public void onResult(BlinkData paramAnonymousBlinkData) {
            BlinkApp.getApp().setOnboardingUrl(null);
            if (Onboard_6_Enter_WiFi_Credentials_Fragment.this.isDetached()) {}
            for (; ; ) {
              return;
              ((InputMethodManager)
                      Onboard_6_Enter_WiFi_Credentials_Fragment.this
                          .getActivity()
                          .getSystemService("input_method"))
                  .hideSoftInputFromWindow(
                      Onboard_6_Enter_WiFi_Credentials_Fragment.this.mSSIDEntry.getWindowToken(),
                      0);
              paramAnonymousBlinkData = Onboard_7_Onboard_Network.newInstance(7);
              if ((Onboard_6_Enter_WiFi_Credentials_Fragment.this.getActivity() != null)
                  && (Onboard_6_Enter_WiFi_Credentials_Fragment.this.mListener != null)
                  && (!Onboard_6_Enter_WiFi_Credentials_Fragment.this.isDetached())) {
                Onboard_6_Enter_WiFi_Credentials_Fragment.this.mListener.onFragmentInteraction(
                    Onboard_6_Enter_WiFi_Credentials_Fragment.this.mSectionNumber,
                    BaseFragment.OnFragmentInteractionListener.InteractionAction.REPLACE_FRAGMENT,
                    paramAnonymousBlinkData);
              }
            }
          }
        },
        25000);
    BlinkApp.getApp().setOnboardingUrl(null);
  }