@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { switch (requestCode) { case MenuHelper.RESULT_COMMON_MENU_CROP: if (resultCode == RESULT_OK) { // The CropImage activity passes back the Uri of the // cropped image as the Action rather than the Data. mSavedUri = Uri.parse(data.getAction()); // if onStart() runs before, then set the returned // image as currentImage. if (mAllImages != null) { IImage image = mAllImages.getImageForUri(mSavedUri); // image could be null if SD card is removed. if (image == null) { finish(); } else { mCurrentPosition = mAllImages.getImageIndex(image); setImage(mCurrentPosition, false); } } } break; } }
public final void onReceive(Context context, Intent intent) { List list; label0: { if (intent.getAction().equals("android.net.wifi.WIFI_STATE_CHANGED")) { a = intent.getIntExtra("wifi_state", 4); if (f.b(d) != null) { f.b(d).b(a); } } if (intent.getAction().equals("android.net.wifi.SCAN_RESULTS") || intent.getAction().equals("android.net.wifi.WIFI_STATE_CHANGED")) { WifiManager wifimanager = f.c(d); list = null; if (wifimanager != null) { list = f.c(d).getScanResults(); } if (!intent.getAction().equals("android.net.wifi.WIFI_STATE_CHANGED") || list != null && (list == null || list.size() != 0)) { break label0; } } return; } if (!c && b != null && b.size() >= 4 && list != null && list.size() <= 2) { a(list); c = true; d.a(0L); return; } a(list); c = false; f.a(d, d. new b(b, System.currentTimeMillis(), a)); if (f.b(d) != null) { f.b(d).a(f.d(d)); } d.a(20000L * (long)f.e(d)); }