package com.ikea.kompis.extendedcontent;

import android.content.Intent;
import android.location.Location;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import com.ikea.kompis.fte.FirstUserExperienceActivity;
import com.ikea.kompis.fte.FirstUserExperienceFragment;
import com.ikea.kompis.util.UiUtil;

public class ECFirstUserExperienceActivity extends FirstUserExperienceActivity
{
  protected Intent getWelcomeIntent()
  {
    return new Intent(this, ECWelcomeActivity.class);
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    if (!UiUtil.isTablet(this))
      setRequestedOrientation(1);
    setContentView(2130903042);
    if (paramBundle == null)
    {
      this.mFirstUserExperienceFragment = new ECFirstUserExperienceFragment();
      if ((getIntent() != null) && (getIntent().getExtras() != null))
      {
        Uri localUri = (Uri)getIntent().getExtras().getParcelable("LaunchedFromCatalogue");
        if (localUri != null)
        {
          Bundle localBundle = new Bundle();
          localBundle.putParcelable("LaunchedFromCatalogue", localUri);
          this.mFirstUserExperienceFragment.setArguments(localBundle);
        }
      }
      FragmentTransaction localFragmentTransaction = getSupportFragmentManager().beginTransaction();
      localFragmentTransaction.replace(2131623964, this.mFirstUserExperienceFragment, "FIRST_USER_EXPERIENCE");
      localFragmentTransaction.commit();
    }
    do
    {
      return;
      this.mFirstUserExperienceFragment = ((ECFirstUserExperienceFragment)getSupportFragmentManager().findFragmentByTag("FIRST_USER_EXPERIENCE"));
    }
    while (!paramBundle.containsKey("KEY_CURRENT_LOCATION"));
    this.mCurrentLocation = ((Location)paramBundle.getParcelable("KEY_CURRENT_LOCATION"));
  }

  protected void openRegistrationFragment()
  {
    if (new ECCountryUtils().isECEnabledInCurrentStore(this))
    {
      ECQRFirstTimeFragment localECQRFirstTimeFragment = new ECQRFirstTimeFragment();
      this.mFirstUserExperienceFragment.updateContentFragment(localECQRFirstTimeFragment, "ECQR", false);
      return;
    }
    super.openRegistrationFragment();
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.ikea.kompis.extendedcontent.ECFirstUserExperienceActivity
 * JD-Core Version:    0.6.2
 */