public void onDone(JSONObject paramJSONObject) {
   WebViewActivity.access$000(this$0, "onDone");
   this$0.setResult(-1);
   String str1 = paramJSONObject.optString("title");
   String str2 = paramJSONObject.optString("subtitle");
   boolean bool = paramJSONObject.optBoolean("has_details");
   try {
     paramJSONObject = paramJSONObject.getString("url");
     if (TextUtils.isEmpty(paramJSONObject)) {
       AppData.a("WEBVIEW", "No URL sent with onDone", new Object[0]);
       WebViewActivity.access$300(this$0, true);
       this$0.finish();
       return;
     }
   } catch (JSONException paramJSONObject) {
     AppData.a("WEBVIEW", "Unexpected result from onDone", new Object[0]);
     WebViewActivity.access$300(this$0, true);
     this$0.finish();
     return;
   }
   Intent localIntent = new Intent("android.intent.action.VIEW");
   localIntent.setData(Uri.parse(paramJSONObject));
   localIntent.putExtra("com.yelp.android.webview_done", true);
   localIntent.putExtra("com.yelp.android.webview_title", str1);
   localIntent.putExtra("com.yelp.android.webview_subtitle", str2);
   localIntent.putExtra("com.yelp.android.webview_has_details", bool);
   WebViewActivity.access$400(this$0);
   this$0.enableLoading();
   new ch("webview_done", new WebViewActivity.ForceDirtySessionCallback(this$0, localIntent))
       .execute(new Void[0]);
 }
 public void onItemClick(
     AdapterView<?> paramAdapterView, View paramView, int paramInt, long paramLong) {
   paramAdapterView = paramAdapterView.getAdapter().getItem(paramInt);
   if ((paramAdapterView instanceof Category)) {
     paramView = (Category) paramAdapterView;
     if (paramView.f() > 0) {
       AppData.a(EventIri.NearbyMoreCategoriesCategory, "category", paramView.d());
       paramAdapterView = new Intent(a.getIntent());
       paramAdapterView.putExtra("category", paramView);
       a.startActivityForResult(paramAdapterView, 101);
     }
   } else {
     return;
   }
   paramAdapterView = paramView;
   if (TextUtils.isEmpty(paramView.d())) {
     paramAdapterView = null;
   }
   if (PickCategory.a(a)) {
     AppData.a(EventIri.NearbyMoreCategoriesCategory, "category", paramAdapterView.d());
     a.startActivity(ActivityNearby.a(a, paramAdapterView.d(), paramAdapterView));
     return;
   }
   paramView = new Intent(a.getIntent());
   paramView.putExtra("category", paramAdapterView);
   a.setResult(-1, paramView);
   a.finish();
 }
 public void a(ApiRequest<?, ?, ?> paramAnonymousApiRequest, j.a paramAnonymousa) {
   disableLoading();
   paramAnonymousApiRequest = new Intent();
   paramAnonymousApiRequest.putExtra("confirmation_main", a);
   paramAnonymousApiRequest.putExtra("confirmation_sub", b);
   setResult(-1, paramAnonymousApiRequest);
   finish();
   paramAnonymousApiRequest = Collections.singletonMap("source", "unclaimed_widget");
   AppData.a(EventIri.BusinessMessageTheBusinessSend, paramAnonymousApiRequest);
   AppData.a(EventIri.BusinessMessageTheBusinessMultibizSend, paramAnonymousApiRequest);
 }
 public void onClick(View paramView) {
   paramView = (YelpBusiness) a.getIntent().getParcelableExtra("extra.business");
   PlatformAction localPlatformAction = paramView.aH();
   HashMap localHashMap = new HashMap();
   localHashMap.put("id", paramView.aD());
   String str1 = a.getIntent().getStringExtra("extra.biz_dimension");
   if (!TextUtils.isEmpty(str1)) {
     localHashMap.put("biz_dimension", str1);
   }
   String str2 = a.getIntent().getStringExtra("extra.search_request_id");
   if (!StringUtils.d(str2)) {
     localHashMap.put("search_request_id", str2);
   }
   localHashMap.put("supported_vertical_types", localPlatformAction.b());
   AppData.a(EventIri.BusinessMenuPlatformOpen, localHashMap);
   a.startActivity(
       PlatformWebViewActivity.a(
           a.getBaseContext(),
           Uri.parse(localPlatformAction.f()),
           a.getString(2131166073),
           ViewIri.OpenURL,
           EnumSet.of(WebViewActivity.Feature.EVENTS),
           WebViewActivity.BackBehavior.FINISH_ON_UP,
           2131166867,
           str1,
           localPlatformAction.b(),
           "source_menu_page",
           paramView.z(),
           str2,
           paramView.aD()));
 }
 public void onCreate(Bundle paramBundle) {
   super.onCreate(paramBundle);
   setContentView(2130903076);
   a = AppData.b().q();
   b = ((EditText) findViewById(2131689746));
   b.setText(a.i());
 }
 public void setUpCommunityInteractionButtons(User paramUser)
 {
   Object localObject = (ViewGroup)findViewById(2131494094);
   if (!AppData.b().m().a(paramUser))
   {
     i = ((LeftDrawableButton)findViewById(2131493858));
     j = ((LeftDrawableButton)findViewById(2131493057));
     localObject = (LeftDrawableButton)findViewById(2131494095);
     a(paramUser, i, j);
     i.setOnClickListener(b(paramUser));
     j.setOnClickListener(c(paramUser));
     ((LeftDrawableButton)localObject).setOnClickListener(d(paramUser));
     if ((paramUser.isFeatureDisabled(FeatureSet.Feature.SEND_MESSAGE)) || (!Features.messaging.isEnabled())) {
       ((LeftDrawableButton)localObject).setVisibility(8);
     }
     if (paramUser.isFriend())
     {
       i.setVisibility(8);
       j.setText(getResources().getString(2131165586));
     }
     while (!paramUser.isFriendRequestPending()) {
       return;
     }
     i.setClickable(false);
     i.setBackgroundResource(2130837709);
     i.setText(getResources().getString(2131165866));
     i.setTextColor(getResources().getColor(2131361834));
     i.setImage(2130837576);
     return;
   }
   ((ViewGroup)localObject).setVisibility(8);
 }
 public void a(PreferenceView paramPreferenceView) {
   if (AppData.b().m().c()) {}
   for (int i = 2131166025; ; i = 2131166030) {
     paramPreferenceView.setTitle(paramPreferenceView.getContext().getText(i));
     return;
   }
 }
 public void afterTextChanged(Editable paramAnonymousEditable) {
   if (ActivityMessageTheBusinessBulkCompose.a(ActivityMessageTheBusinessBulkCompose.this)) {
     ActivityMessageTheBusinessBulkCompose.a(
         ActivityMessageTheBusinessBulkCompose.this, false);
     AppData.a(
         EventIri.BusinessMessageTheBusinessWrite,
         Collections.singletonMap("source", "unclaimed_widget"));
   }
 }
 public void onLogin(JSONObject paramJSONObject) {
   WebViewActivity.access$000(this$0, "onLogin");
   try {
     paramJSONObject = paramJSONObject.getString("url");
     if (TextUtils.isEmpty(paramJSONObject)) {
       AppData.a("WEBVIEW", "No URL sent with onLogin", new Object[0]);
       WebViewActivity.access$300(this$0, true);
       this$0.finish();
       return;
     }
   } catch (JSONException paramJSONObject) {
     AppData.a("WEBVIEW", "No URL included in result from onLogin", new Object[0]);
     WebViewActivity.access$300(this$0, true);
     this$0.finish();
     return;
   }
   Intent localIntent = new Intent();
   localIntent.putExtra("redirect_url", paramJSONObject);
   paramJSONObject = ActivityLogin.a(this$0, localIntent);
   this$0.startActivityForResult(paramJSONObject, 1043);
 }
 public boolean onOptionsItemSelected(MenuItem paramMenuItem) {
   switch (paramMenuItem.getItemId()) {
     default:
       return super.onOptionsItemSelected(paramMenuItem);
     case 2131691015:
       if ((b()) && (!AppData.b().q().b())) {
         startActivityForResult(ActivityLogin.a(this, 2131166101), 1048);
       }
       for (; ; ) {
         AppData.a(
             EventIri.BusinessMessageTheBusinessTapSend,
             Collections.singletonMap("source", "unclaimed_widget"));
         return true;
         if (b()) {
           c();
         }
       }
   }
   finish();
   return true;
 }
 private void a() {
   String str = b.getText().toString().trim();
   if (StringUtils.d(str)) {
     AppData.a(EventIri.UpdatePrimaryEmail, "is_email_changed", Boolean.valueOf(false));
     as.a(AppData.b().getString(2131165845), 1);
   }
   do {
     return;
     if (!Patterns.EMAIL_ADDRESS.matcher(str).matches()) {
       AppData.a(EventIri.UpdatePrimaryEmail, "is_email_changed", Boolean.valueOf(false));
       as.a(AppData.b().getString(2131165836), 1);
       return;
     }
     if (str.equalsIgnoreCase(a.i())) {
       AppData.a(EventIri.UpdatePrimaryEmail, "is_email_changed", Boolean.valueOf(false));
       setResult(0);
       finish();
       return;
     }
     if ((c != null) && (c.u()) && (!str.equalsIgnoreCase(c.b()))) {
       c.a(true);
     }
   } while ((c != null) && (c.u()));
   c = new ex(str, d);
   c.f(new Void[0]);
   showLoadingDialog(c);
   AppData.a(EventIri.UpdatePrimaryEmail, "is_email_changed", Boolean.valueOf(true));
 }
 public aq(Location paramLocation, String paramString, ApiRequest.b<Void> paramb) {
   super(ApiRequest.RequestType.POST, "client/register", paramb);
   paramb = paramLocation;
   if (paramLocation == null) {
     paramb = AppData.b().r().c();
   }
   if (paramb != null) {
     b("longitude", paramb.getLongitude());
     b("latitude", paramb.getLatitude());
     b("accuracy", paramb.getAccuracy());
   }
   b("gcm_registration_id", paramString);
 }
 public void onClick(View paramView) {
   if (YourNextReviewAwaitsFragment.a(c).size() < YourNextReviewAwaitsFragment.b(c).size()) {
     int j = YourNextReviewAwaitsFragment.a(c).size();
     int i = 0;
     while ((i + j < YourNextReviewAwaitsFragment.b(c).size()) && (i < 3)) {
       YourNextReviewAwaitsFragment.a(
           c, (ReviewSuggestion) YourNextReviewAwaitsFragment.b(c).get(i + j), a, true);
       i += 1;
     }
     if (YourNextReviewAwaitsFragment.a(c).size() == YourNextReviewAwaitsFragment.b(c).size()) {
       b.setVisibility(8);
     }
     AppData.a(EventIri.ReviewSuggestionLoadedMore);
   }
 }
 private void setUpBasicUserInfo(User paramUser)
 {
   g = ((ViewGroup)findViewById(2131493472));
   Context localContext = getContext();
   Object localObject = a(g);
   ((TextView)localObject).setText(a(StringUtils.a(localContext, 2131166901, new Object[] { paramUser.getLocation() }), a));
   ((TextView)localObject).setEnabled(false);
   if (paramUser.getMemberSince() != null)
   {
     localObject = a(g);
     ((TextView)localObject).setId(2131492929);
     ((TextView)localObject).setEnabled(false);
     ((TextView)localObject).setText(a(StringUtils.a(localContext, 2131166902, new Object[] { a(paramUser.getMemberSince()) }), a));
   }
   if (paramUser.isFriend())
   {
     localObject = LayoutInflater.from(localContext).inflate(2130903352, g, false);
     g.addView((View)localObject);
     CompoundButton localCompoundButton = (CompoundButton)((View)localObject).findViewById(2131493923);
     localCompoundButton.setChecked(paramUser.isSendingNotifications());
     localCompoundButton.setOnCheckedChangeListener(new ae(paramUser));
     ((View)localObject).setOnClickListener(new ad(this, localCompoundButton));
     localObject = (SpannableWidget)localObject;
   }
   h = b(g);
   if (AppData.b().m().a(paramUser)) {
     h.setText(localContext.getString(2131166104));
   }
   for (;;)
   {
     h.setOnClickListener(new by(EventIri.ProfileMoreAboutButton, MoreAboutUser.a(localContext, paramUser)));
     paramUser = (SpannableWidget)h;
     if (paramUser != null) {
       paramUser.setRight(true);
     }
     return;
     h.setText(localContext.getString(2131166103, new Object[] { paramUser.getFirstName() }));
   }
 }
 public View onCreateView(LayoutInflater paramLayoutInflater, ViewGroup paramViewGroup, Bundle paramBundle)
 {
   ViewGroup localViewGroup = (ViewGroup)super.onCreateView(paramLayoutInflater, paramViewGroup, paramBundle);
   paramLayoutInflater.inflate(2130903548, localViewGroup);
   c(localViewGroup);
   paramLayoutInflater = (TextView)localViewGroup.findViewById(2131690940);
   paramViewGroup = getArguments().getString("business_name");
   b = ((Address)getArguments().getParcelable("address"));
   Address localAddress = c.c();
   if (localAddress != null) {
     b = localAddress;
   }
   if (TextUtils.isEmpty(paramViewGroup)) {}
   for (int i = 2131166373;; i = 2131166372)
   {
     paramLayoutInflater.setText(StringUtils.a(getActivity(), i, new Object[] { paramViewGroup, a.a(", ", b) }));
     paramViewGroup = YelpMap.a(AppData.b().r().c());
     paramLayoutInflater = paramViewGroup;
     if (b.hasLatitude())
     {
       paramLayoutInflater = paramViewGroup;
       if (b.hasLongitude()) {
         paramLayoutInflater = YelpMap.b(CameraPosition.b().a(new LatLng(b.getLatitude(), b.getLongitude())).a());
       }
     }
     CameraPosition.b();
     if (paramLayoutInflater.n() != null) {
       paramLayoutInflater.a(CameraPosition.a(paramLayoutInflater.n()).a(19.0F).a());
     }
     a.setOptions(paramLayoutInflater);
     a.a(paramBundle, null);
     g();
     paramLayoutInflater = (ImageView)a.findViewById(2131689600);
     paramViewGroup = getResources().getDrawable(2130838392);
     paramLayoutInflater.setImageDrawable(paramViewGroup);
     paramLayoutInflater.setPadding(0, 0, 0, paramViewGroup.getIntrinsicHeight());
     return localViewGroup;
   }
 }
 public void onCreate(Bundle paramBundle) {
   super.onCreate(paramBundle);
   Uri localUri = getIntent().getData();
   paramBundle = b(localUri);
   String str = a(localUri);
   if (!TextUtils.isEmpty(str)) {
     if (TextUtils.isEmpty(str)) {
       break label121;
     }
     if (!"yelp".equals(localUri.getScheme())) {
       break label104;
     }
     paramBundle =
         ActivityMediaViewer.a(
             this, str, BusinessMediaRequest.singlePhoto(str, paramBundle), new ArrayList(0), 0);
   }
   for (; ; ) {
     paramBundle.putExtra("yelp:external_request", true);
     AppData.b().k().a(new o(localUri));
     startActivity(paramBundle);
     finish();
     return;
     label104:
     paramBundle = ActivityMediaViewer.a(this, str, new ArrayList(), paramBundle);
     continue;
     label121:
     paramBundle =
         ActivityMediaBrowser.a(
             this,
             getString(2131166331),
             null,
             new BusinessMediaRequest(str, 0, 20),
             new ArrayList(),
             false);
   }
 }
 public void onClick(View paramView) {
   ActivityRateAppPrompt.a(a);
   AppData.a(EventIri.AppRateRemind);
   a.finish();
 }
 public void onItemClick(
     AdapterView<?> paramAdapterView, View paramView, int paramInt, long paramLong) {
   AppData.a(EventIri.SignUpDropdownClick);
 }
 public void onError(ApiRequest<?, ?, ?> paramApiRequest, YelpException paramYelpException) {
   a.hideLoadingDialog();
   as.a(AppData.b().getString(2131166740), 1);
 }