package com.ikea.kompis.stores;

import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.location.Location;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewPropertyAnimator;
import android.widget.TextView;
import com.ikea.kompis.ShoppingCartActivity;
import com.ikea.kompis.stores.event.LocationUpdateEvent;
import com.ikea.kompis.stores.event.StoreInfoSelectedEvent;
import com.ikea.kompis.stores.event.StoreInfoStateChangedEvent;
import com.ikea.kompis.stores.event.StoreMarkerSelectedEvent;
import com.ikea.kompis.stores.event.StoreSelectedEvent;
import com.ikea.kompis.util.UiUtil;
import com.ikea.shared.AppConfigData;
import com.ikea.shared.AppConfigManager;
import com.ikea.shared.AppError;
import com.ikea.shared.location.event.StoreInOutEvent;
import com.ikea.shared.store.service.StoreCache;
import com.ikea.shared.store.service.StoreService;
import com.ikea.shared.stores.model.StoreList;
import com.ikea.shared.stores.model.StoreLocation;
import com.ikea.shared.stores.model.StoreRef;
import com.ikea.shared.stores.model.StoreRefList;
import com.ikea.shared.user.event.FavStoreChangeEvent;
import com.ikea.shared.util.L;
import com.ikea.shared.util.ServiceCallback;
import com.ikea.shared.util.Util;
import com.squareup.otto.Bus;
import com.squareup.otto.Subscribe;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

public class StoreFragment extends StoreBaseFragment
{
  public static final String CURRENT_LOCATION_DATA = "CURRENT_LOCATION_DATA";
  public static final String FAV_STORE_DATA = "FAV_STORE_DATA";
  public static final String INFO_FRAGMENT = "STORE_INFO_FRAGMENT";
  public static final String IS_STORE_LIST_OPENED = "IS_STORE_LIST_OPENED";
  public static final String KEY_HANDLER_ACTIVE_FOR_FUE = "KEY_HANDLER_ACTIVE_FOR_FUE";
  public static final String LIST_FRAGMENT = "STORE_LIST_FRAGMENT";
  public static final String MAP_FRAGMENT = "STORE_FRAGMENT";
  public static final String MAP_WEB_FRAGMENT = "MAP_WEB_FRAGMENT";
  private static final String SELECTED_STORE = "selected_store";
  public static final String SELECTED_STORE_DATA = "SELECTED_STORE_DATA";
  private static final String STORE_INFO_STATUS = "STORE_INFO_STATUS";
  public static final String STORE_LIST_DATA = "STORE_LIST_DATA";
  private static final float VIEW_FADED = 0.7F;
  private boolean isErrorShown = false;
  private boolean isLandscape;
  private boolean isMapMenuOpened = false;
  private boolean isStoreInfoOpen;
  private boolean isTablet;
  private float mDeviceWidth;
  protected TextView mErrorMessage;
  private EventHandler mEventHandler;
  private View mFadeView = null;
  private StoreRef mFavStore;
  private boolean mHandlerActiveForFUE = false;
  private IKEAStoresFragment mListFragment;
  private MapFragment mMapFragment;
  private View mMapViewLayout;
  private final View.OnClickListener mOnClickListener = new View.OnClickListener()
  {
    public void onClick(View paramAnonymousView)
    {
      StoreFragment.this.closeStoreListMenu();
    }
  };
  protected View mRightMenuView;
  private StoreRef mSelectedStore;
  private final ServiceCallback<StoreList> mServiceCallback = new ServiceCallback()
  {
    public void done(StoreList paramAnonymousStoreList, AppError paramAnonymousAppError, Exception paramAnonymousException)
    {
      L.I("callback done  :: " + paramAnonymousStoreList);
      if (StoreFragment.this.getActivity() == null)
        return;
      if ((paramAnonymousStoreList != null) && (paramAnonymousStoreList.getStoreRefList() != null))
      {
        StoreFragment.access$502(StoreFragment.this, paramAnonymousStoreList);
        if (StoreFragment.this.mFavStore != null)
        {
          int i = 0;
          while (true)
          {
            StoreRef localStoreRef;
            synchronized (StoreFragment.this.obj)
            {
              Iterator localIterator = new ArrayList(StoreFragment.this.mStoreList.getStoreRefList().getStoreRef()).iterator();
              if (!localIterator.hasNext())
                break label204;
              localStoreRef = (StoreRef)localIterator.next();
              boolean bool = localStoreRef.getStoreNo().equals(StoreFragment.this.mFavStore.getStoreNo());
              if (!bool)
                continue;
              i = 1;
            }
            try
            {
              AppConfigManager.i(StoreFragment.this.mParent).saveFavStore(localStoreRef);
              StoreFragment.access$602(StoreFragment.this, localStoreRef);
              continue;
              localObject2 = finally;
              throw localObject2;
            }
            catch (IOException localIOException)
            {
              while (true)
                L.E(localIOException.getLocalizedMessage());
            }
          }
          label204: if (i == 0)
          {
            StoreFragment.this.mFavStore.setStoreDistance("-1");
            StoreFragment.this.mStoreList.getStoreRefList().getStoreRef().add(0, StoreFragment.this.mFavStore);
          }
        }
        StoreFragment.this.refreshUI();
        return;
      }
      if ((StoreFragment.this.mStoreList != null) && (StoreFragment.this.mStoreList.getStoreRefList() != null) && (StoreFragment.this.mStoreList.getStoreRefList().getStoreRef() != null) && (!StoreFragment.this.mStoreList.getStoreRefList().getStoreRef().isEmpty()))
      {
        StoreFragment.this.showNoNetowrk();
        return;
      }
      StoreFragment.this.showErrorMessage();
    }
  };
  private StoreDetailsFragment mStoreDetailsFragment;
  private View mStoreInfoLayout;
  private StoreList mStoreList;
  private View mStoreListLayout;
  private View mStorelistMenu;
  private boolean mUiCreationFromResumeDone = false;
  private MapWebViewFragment mWebMapFragment;
  private Object obj = new Object();

  private void closeStoreInfo()
  {
    this.mHandler.postDelayed(new Runnable()
    {
      public void run()
      {
        if (StoreFragment.this.getActivity() != null)
        {
          StoreFragment.access$002(StoreFragment.this, false);
          Intent localIntent = new Intent();
          StoreFragment.this.getActivity().setResult(-1, localIntent);
          StoreFragment.this.getActivity().finish();
          StoreFragment.this.getActivity().overridePendingTransition(2130968587, 2130968584);
        }
      }
    }
    , 3000L);
  }

  private void closeStoreListMenu()
  {
    if (this.isMapMenuOpened)
      handleStoreListMenu();
  }

  private void handleStoreListMenu()
  {
    if ((this.mStoreListLayout != null) && (this.mMapViewLayout != null) && (this.mStoreInfoLayout != null))
    {
      if (this.isMapMenuOpened)
        break label178;
      this.isMapMenuOpened = true;
      if (this.mStoreDetailsFragment != null)
        this.mStoreDetailsFragment.setHeaderVisibility(false);
      if (!this.isTablet)
        break label132;
      if (!this.isLandscape)
        break label107;
      this.mStoreListLayout.animate().translationX(this.mDeviceWidth - this.mDeviceWidth / 3.0F);
    }
    while (true)
    {
      this.mFadeView.setVisibility(0);
      this.mFadeView.animate().alpha(0.7F);
      return;
      label107: this.mStoreListLayout.animate().translationX(this.mDeviceWidth - this.mDeviceWidth / 2.0F);
      continue;
      label132: this.mStoreListLayout.animate().translationX(this.mDeviceWidth - this.mDeviceWidth);
      this.mParent.updateTitleBar(false, false, getActivity().getResources().getString(2131165473), null, true);
    }
    label178: this.isMapMenuOpened = false;
    if (this.mStoreDetailsFragment != null)
      this.mStoreDetailsFragment.setHeaderVisibility(true);
    this.mStoreListLayout.animate().translationX(this.mDeviceWidth);
    if (!this.isTablet)
    {
      if (!this.mLaunchedFromTray)
        break label265;
      this.mParent.updateTitleBar(true, false, "", this.mRightMenuView, true);
    }
    while (true)
    {
      this.mFadeView.setVisibility(8);
      this.mFadeView.animate().alpha(0.0F);
      return;
      label265: this.mParent.updateTitleBar(false, false, "", this.mRightMenuView, true);
    }
  }

  private void refreshAdapter()
  {
    StoreService.i(this.mParent).getStoresAsync(this.mServiceCallback);
  }

  private void refreshUI()
  {
    if ((getActivity() != null) && (this.mStoreList != null) && (this.mStoreList.getStoreRefList() != null) && (this.mStoreList.getStoreRefList().getStoreRef() != null) && (!this.mStoreList.getStoreRefList().getStoreRef().isEmpty()))
    {
      ArrayList localArrayList;
      synchronized (this.obj)
      {
        float[] arrayOfFloat = { 0.0F, 0.0F, 0.0F };
        localArrayList = new ArrayList(this.mStoreList.getStoreRefList().getStoreRef());
        if (this.mCurrentLocation == null)
          break label298;
        Iterator localIterator2 = localArrayList.iterator();
        while (localIterator2.hasNext())
        {
          StoreRef localStoreRef = (StoreRef)localIterator2.next();
          StoreLocation localStoreLocation = localStoreRef.getStoreLocation();
          if ((localStoreLocation != null) && (!TextUtils.isEmpty(localStoreLocation.getLat())) && (!TextUtils.isEmpty(localStoreLocation.getLong())))
          {
            Location.distanceBetween(this.mCurrentLocation.getLatitude(), this.mCurrentLocation.getLongitude(), Double.parseDouble(localStoreLocation.getLat()), Double.parseDouble(localStoreLocation.getLong()), arrayOfFloat);
            if ((arrayOfFloat != null) && (arrayOfFloat.length > 0))
              localStoreRef.setStoreDistance(String.valueOf(arrayOfFloat[0] / 1000.0F));
          }
        }
      }
      Collections.sort(localArrayList, Util.mStoreComparator);
      while (true)
      {
        if (this.mSelectedStore == null)
          this.mSelectedStore = this.mFavStore;
        this.mStoreList.getStoreRefList().setStoreRef(localArrayList);
        setData(this.mStoreList.getStoreRefList(), this.mFavStore, this.mCurrentLocation, this.mSelectedStore, this.mLaunchedFromFirstUserExp);
        return;
        label298: Iterator localIterator1 = localArrayList.iterator();
        while (localIterator1.hasNext())
          ((StoreRef)localIterator1.next()).setStoreDistance("-1");
        Collections.sort(localArrayList, Util.mStoreNameComparator);
      }
    }
  }

  private void setData(StoreRefList paramStoreRefList, StoreRef paramStoreRef1, Location paramLocation, StoreRef paramStoreRef2, boolean paramBoolean)
  {
    this.isErrorShown = false;
    FragmentTransaction localFragmentTransaction = getChildFragmentManager().beginTransaction();
    Bundle localBundle;
    if ((this.mMapFragment == null) && (this.mWebMapFragment == null) && (this.mStoreList != null))
    {
      localBundle = new Bundle();
      localBundle.putSerializable("STORE_LIST_DATA", this.mStoreList.getStoreRefList());
      localBundle.putSerializable("FAV_STORE_DATA", this.mFavStore);
      localBundle.putSerializable("selected_store", this.mSelectedStore);
      if ((this.mMapFragment != null) || (!UiUtil.isPlayServiceAvailable(this.mParent)) || (UiUtil.getVersionFromPackageManager(this.mParent) < 2) || (AppConfigManager.i(getActivity()).getAppConfigData().getCountryCode().equalsIgnoreCase("kr")))
        break label378;
      this.mMapFragment = new MapFragment();
      this.mMapFragment.setArguments(localBundle);
      localFragmentTransaction.replace(this.mMapViewLayout.getId(), this.mMapFragment, "STORE_FRAGMENT");
    }
    while (true)
    {
      if (this.mStorelistMenu != null)
        this.mStorelistMenu.setVisibility(0);
      if (this.mErrorMessage != null)
        this.mErrorMessage.setVisibility(4);
      if (this.mListFragment == null)
      {
        int j = this.mStoreListLayout.getId();
        IKEAStoresFragment localIKEAStoresFragment = new IKEAStoresFragment();
        this.mListFragment = localIKEAStoresFragment;
        localFragmentTransaction.replace(j, localIKEAStoresFragment, "STORE_LIST_FRAGMENT");
      }
      if ((this.mStoreInfoLayout != null) && (this.mStoreDetailsFragment == null))
      {
        int i = this.mStoreInfoLayout.getId();
        StoreDetailsFragment localStoreDetailsFragment = new StoreDetailsFragment();
        this.mStoreDetailsFragment = localStoreDetailsFragment;
        localFragmentTransaction.replace(i, localStoreDetailsFragment, "STORE_INFO_FRAGMENT");
      }
      localFragmentTransaction.commitAllowingStateLoss();
      if (this.mMapFragment != null)
        this.mMapFragment.setData(paramStoreRefList, paramStoreRef1, paramStoreRef2);
      if (this.mListFragment != null)
        this.mListFragment.setData(paramStoreRefList, paramStoreRef1);
      if (this.mStoreDetailsFragment != null)
      {
        if (this.isMapMenuOpened)
          break;
        this.mStoreDetailsFragment.setData(paramStoreRefList, paramStoreRef1, paramLocation, paramStoreRef2, paramBoolean, this.mLaunchedFromTray, this.mLaunchedFromWelcome, this.mLaunchedFromSL, this.mLaunchedFromSetting, true);
      }
      return;
      label378: if (this.mWebMapFragment == null)
      {
        this.mWebMapFragment = new MapWebViewFragment();
        this.mWebMapFragment.setArguments(localBundle);
        localFragmentTransaction.replace(this.mMapViewLayout.getId(), this.mWebMapFragment, "MAP_WEB_FRAGMENT");
      }
    }
    this.mStoreDetailsFragment.setData(paramStoreRefList, paramStoreRef1, paramLocation, paramStoreRef2, paramBoolean, this.mLaunchedFromTray, this.mLaunchedFromWelcome, this.mLaunchedFromSL, this.mLaunchedFromSetting, false);
  }

  protected View getRightMenu(Context paramContext, ViewGroup paramViewGroup)
  {
    if ((!this.isMapMenuOpened) || (this.isTablet))
    {
      this.mRightMenuView = LayoutInflater.from(paramContext).inflate(2130903053, paramViewGroup, false);
      this.mStorelistMenu = this.mRightMenuView.findViewById(2131624016);
      if (this.mStorelistMenu != null)
        this.mStorelistMenu.setOnClickListener(new View.OnClickListener()
        {
          public void onClick(View paramAnonymousView)
          {
            StoreFragment.this.handleStoreListMenu();
          }
        });
      if (this.mStorelistMenu != null)
      {
        if (!this.isErrorShown)
          break label93;
        this.mStorelistMenu.setVisibility(4);
      }
      while (true)
      {
        return this.mRightMenuView;
        label93: this.mStorelistMenu.setVisibility(0);
      }
    }
    return null;
  }

  protected CharSequence getTitle(Context paramContext)
  {
    if ((!this.isMapMenuOpened) || (this.isTablet))
      return "";
    return getActivity().getResources().getString(2131165473);
  }

  public boolean goBack()
  {
    if (this.isMapMenuOpened)
    {
      this.mParent.mGoingBack = true;
      closeStoreListMenu();
    }
    do
    {
      return true;
      if (!this.isStoreInfoOpen)
        break;
      this.isStoreInfoOpen = false;
    }
    while (this.mStoreDetailsFragment == null);
    this.mStoreDetailsFragment.closeInfoView();
    return true;
    return super.goBack();
  }

  protected boolean needTray()
  {
    if (UiUtil.isTablet(this.mParent))
      if (!this.mLaunchedFromTray);
    while ((this.mLaunchedFromTray) && (!this.isMapMenuOpened))
    {
      return true;
      return false;
    }
    return false;
  }

  public View onCreateView(LayoutInflater paramLayoutInflater, ViewGroup paramViewGroup, Bundle paramBundle)
  {
    this.mEventHandler = new EventHandler(null);
    this.isTablet = UiUtil.isTablet(getActivity());
    this.isLandscape = UiUtil.isLandscape(getActivity());
    this.mDeviceWidth = UiUtil.screenWidth(getActivity());
    int i = UiUtil.screenContentHeight(this.mParent);
    View localView = paramLayoutInflater.inflate(2130903154, paramViewGroup, false);
    this.mMapViewLayout = localView.findViewById(2131624470);
    this.mStoreListLayout = localView.findViewById(2131624472);
    this.mStoreInfoLayout = localView.findViewById(2131624471);
    this.mErrorMessage = ((TextView)localView.findViewById(2131624003));
    this.mFadeView = localView.findViewById(2131623995);
    this.mFadeView.setOnClickListener(this.mOnClickListener);
    this.mStoreListLayout.setTranslationX(this.mDeviceWidth);
    ViewGroup.LayoutParams localLayoutParams = this.mStoreListLayout.getLayoutParams();
    if (this.isTablet)
      if (this.isLandscape)
      {
        localLayoutParams.width = ((int)(this.mDeviceWidth / 3.0F));
        this.mStoreListLayout.setLayoutParams(localLayoutParams);
        AppConfigData localAppConfigData = AppConfigManager.i(this.mParent).getAppConfigData();
        this.mStoreList = StoreCache.i(this.mParent).getStoreList();
        if ((localAppConfigData != null) && (localAppConfigData.getFavStore() != null))
        {
          this.mFavStore = localAppConfigData.getFavStore();
          if ((this.mStoreList == null) || (this.mStoreList.getStoreRefList() == null))
          {
            this.mStoreList = new StoreList();
            StoreRefList localStoreRefList = new StoreRefList();
            List localList = Collections.synchronizedList(new ArrayList());
            localList.add(this.mFavStore);
            localStoreRefList.setStoreRef(localList);
            this.mStoreList.setStoreRefList(localStoreRefList);
          }
        }
        if (paramBundle != null)
        {
          this.mListFragment = ((IKEAStoresFragment)getChildFragmentManager().findFragmentByTag("STORE_LIST_FRAGMENT"));
          this.mMapFragment = ((MapFragment)getChildFragmentManager().findFragmentByTag("STORE_FRAGMENT"));
          this.mStoreDetailsFragment = ((StoreDetailsFragment)getChildFragmentManager().findFragmentByTag("STORE_INFO_FRAGMENT"));
          if (paramBundle.containsKey("selected_store"))
            this.mSelectedStore = ((StoreRef)paramBundle.getSerializable("selected_store"));
          this.isStoreInfoOpen = paramBundle.getBoolean("STORE_INFO_STATUS", false);
          this.isMapMenuOpened = paramBundle.getBoolean("IS_STORE_LIST_OPENED", false);
          if (paramBundle.containsKey("KEY_HANDLER_ACTIVE_FOR_FUE"))
            this.mHandlerActiveForFUE = paramBundle.getBoolean("KEY_HANDLER_ACTIVE_FOR_FUE", false);
          if (this.mHandlerActiveForFUE)
            closeStoreInfo();
          if (this.isMapMenuOpened)
          {
            this.mStoreInfoLayout.setTranslationY(i);
            if (!this.isTablet)
              break label567;
            if (!this.isLandscape)
              break label546;
            this.mStoreListLayout.setTranslationX(this.mDeviceWidth - this.mDeviceWidth / 3.0F);
          }
        }
      }
    while (true)
    {
      this.mFadeView.setVisibility(0);
      this.mFadeView.setAlpha(0.7F);
      return localView;
      localLayoutParams.width = ((int)(this.mDeviceWidth / 2.0F));
      break;
      localLayoutParams.width = ((int)this.mDeviceWidth);
      break;
      label546: this.mStoreListLayout.setTranslationX(this.mDeviceWidth - this.mDeviceWidth / 2.0F);
      continue;
      label567: this.mStoreListLayout.setTranslationX(0.0F);
    }
  }

  public void onPause()
  {
    super.onPause();
    this.mServiceCallback.markInvalid();
    this.mParent.setInterceptTouchEvent(true);
    try
    {
      this.mBus.unregister(this.mEventHandler);
      return;
    }
    catch (Exception localException)
    {
      L.W("No event handler to unregister");
    }
  }

  public void onResume()
  {
    super.onResume();
    this.mParent.hideSL();
    this.mServiceCallback.markValid();
    this.mBus.register(this.mEventHandler);
    if ((this.mStoreList == null) || ((this.mStoreList.getStoreRefList() != null) && (this.mStoreList.getStoreRefList().getStoreRef() != null) && (this.mStoreList.getStoreRefList().getStoreRef().size() == 1) && (((StoreRef)this.mStoreList.getStoreRefList().getStoreRef().get(0)).equals(this.mFavStore))))
      refreshAdapter();
    while (true)
    {
      this.mParent.setInterceptTouchEvent(false);
      return;
      this.mHandler.postDelayed(new Runnable()
      {
        public void run()
        {
          StoreFragment.this.refreshUI();
          StoreFragment.access$302(StoreFragment.this, true);
        }
      }
      , 500L);
    }
  }

  public void onSaveInstanceState(Bundle paramBundle)
  {
    super.onSaveInstanceState(paramBundle);
    if (this.mSelectedStore != null)
      paramBundle.putSerializable("selected_store", this.mSelectedStore);
    paramBundle.putBoolean("STORE_INFO_STATUS", this.isStoreInfoOpen);
    paramBundle.putBoolean("IS_STORE_LIST_OPENED", this.isMapMenuOpened);
    paramBundle.putBoolean("KEY_HANDLER_ACTIVE_FOR_FUE", this.mHandlerActiveForFUE);
  }

  protected void showErrorMessage()
  {
    showErrorMessage(getString(2131165477));
  }

  public void showErrorMessage(String paramString)
  {
    if (this.mErrorMessage != null)
    {
      this.mErrorMessage.setText(paramString);
      this.mErrorMessage.setVisibility(0);
    }
    if (this.mListFragment != null)
      this.mListFragment.showErrorMessage(paramString);
    if (this.mStoreDetailsFragment != null)
      this.mStoreDetailsFragment.setHeaderVisibility(false);
    if (this.mStorelistMenu != null)
    {
      this.isErrorShown = true;
      this.mStorelistMenu.setVisibility(4);
    }
  }

  private class EventHandler
  {
    private EventHandler()
    {
    }

    @Subscribe
    public void handleFavStoreChanged(FavStoreChangeEvent paramFavStoreChangeEvent)
    {
      StoreFragment.access$602(StoreFragment.this, paramFavStoreChangeEvent.favStore);
      if (StoreFragment.this.mLaunchedFromFirstUserExp)
      {
        StoreFragment.access$002(StoreFragment.this, true);
        StoreFragment.this.closeStoreInfo();
      }
    }

    @Subscribe
    public void handleInStoreEvent(StoreInOutEvent paramStoreInOutEvent)
    {
      if ((StoreFragment.this.mCurrentLocation != null) && (StoreFragment.this.getActivity() != null))
        StoreFragment.this.refreshUI();
    }

    @Subscribe
    public void handleLocationUpdateEvent(LocationUpdateEvent paramLocationUpdateEvent)
    {
      if ((StoreFragment.this.mCurrentLocation != null) && (StoreFragment.this.getActivity() != null) && (StoreFragment.this.mUiCreationFromResumeDone == true))
        StoreFragment.this.refreshUI();
    }

    @Subscribe
    public void handleStoreDetailsStateChanged(StoreInfoStateChangedEvent paramStoreInfoStateChangedEvent)
    {
      if (paramStoreInfoStateChangedEvent.isOpened)
      {
        StoreFragment.access$1202(StoreFragment.this, true);
        return;
      }
      StoreFragment.access$1202(StoreFragment.this, false);
    }

    @Subscribe
    public void handleStoreMarkerSelected(StoreMarkerSelectedEvent paramStoreMarkerSelectedEvent)
    {
      StoreRef localStoreRef = paramStoreMarkerSelectedEvent.store;
      if ((localStoreRef != null) && (localStoreRef.getStoreLocation() != null))
        StoreFragment.access$1002(StoreFragment.this, localStoreRef);
    }

    @Subscribe
    public void handleStoreSelected(StoreInfoSelectedEvent paramStoreInfoSelectedEvent)
    {
      StoreRef localStoreRef = paramStoreInfoSelectedEvent.store;
      if ((localStoreRef != null) && (localStoreRef.getStoreLocation() != null))
        StoreFragment.access$1002(StoreFragment.this, localStoreRef);
    }

    @Subscribe
    public void handleStoreSelected(StoreSelectedEvent paramStoreSelectedEvent)
    {
      StoreFragment.this.closeStoreListMenu();
      StoreRef localStoreRef = paramStoreSelectedEvent.store;
      if ((localStoreRef != null) && (localStoreRef.getStoreLocation() != null))
        StoreFragment.access$1002(StoreFragment.this, localStoreRef);
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.ikea.kompis.stores.StoreFragment
 * JD-Core Version:    0.6.2
 */