Source:
<code>private void setupBackgroundImage() { if (mode == 0) return; bgshape = bgblack; exif.setVisibility(View.GONE); if (!Utility.isLowRamDevice(mContext)) { switch (settings.getBackgroundMode()){ case Settings.BACKGROUND_BLACK: { bgshape = bgblack; break; } case Settings.BACKGROUND_GRADIENT: { bgshape = ContextCompat.getDrawable(mContext, R.drawable.background_gradient); break; } case Settings.BACKGROUND_IMAGE: { bgshape = loadBackgroundImage(); break; } case Settings.BACKGROUND_SLIDESHOW: { if (preloadBackgroundImage == null) { bgshape = loadBackgroundSlideshowImage(); } else { bgshape = new BitmapDrawable(mContext.getResources(), preloadBackgroundImage); setDominantColorFromBitmap(preloadBackgroundImage); } if (settings.background_exif) { exif.setVisibility(View.VISIBLE); try { exif.setText(getExifInformation()); <START> } catch (Exception e) { <END> exif.setText("Error reading exif information"); Log.e(TAG, "exception: ", e); } } break; } } } if ( settings.hideBackgroundImage && mode == 0 ) { background_images[background_image_active].setImageDrawable(bgblack); exif.setVisibility(View.GONE); } else { background_image_active = (background_image_active + 1) % 2; switch (settings.slideshowStyle) { case Settings.SLIDESHOW_STYLE_CENTER: background_images[background_image_active].setScaleType(ImageView.ScaleType.CENTER_INSIDE); break; case Settings.SLIDESHOW_STYLE_CROPPED: default: background_images[background_image_active].setScaleType(ImageView.ScaleType.CENTER_CROP); break; } background_images[background_image_active].setImageDrawable(bgshape); setupSlideshowAnimation(); } }</code><technical_language>general exception handlers please</technical_language>

Target:
private void setupBackgroundImage() { if (mode == 0) return; bgshape = bgblack; exitTextView.setVisibility(View.GONE); if (!Utility.isLowRamDevice(mContext)) { switch (settings.getBackgroundMode()){ case Settings.BACKGROUND_BLACK: { bgshape = bgblack; break; } case Settings.BACKGROUND_GRADIENT: { bgshape = ContextCompat.getDrawable(mContext, R.drawable.background_gradient); break; } case Settings.BACKGROUND_IMAGE: { bgshape = loadBackgroundImage(); break; } case Settings.BACKGROUND_SLIDESHOW: { if (preloadBackgroundImage == null) { bgshape = loadBackgroundSlideshowImage(); } else { bgshape = new BitmapDrawable(mContext.getResources(), preloadBackgroundImage); setDominantColorFromBitmap(preloadBackgroundImage); } if (settings.background_exif) { exitTextView.setVisibility(View.VISIBLE); try { exitTextView.setText(getExifInformation()); } catch (Exception e) { exitTextView.setText(""); Log.e(TAG, "exception: ", e); } } break; } } } if ( settings.hideBackgroundImage && mode == 0 ) { background_images[background_image_active].setImageDrawable(bgblack); exitTextView.setVisibility(View.GONE); } else { background_image_active = (background_image_active + 1) % 2; switch (settings.slideshowStyle) { case Settings.SLIDESHOW_STYLE_CENTER: background_images[background_image_active].setScaleType(ImageView.ScaleType.CENTER_INSIDE); break; case Settings.SLIDESHOW_STYLE_CROPPED: default: background_images[background_image_active].setScaleType(ImageView.ScaleType.CENTER_CROP); break; } background_images[background_image_active].setImageDrawable(bgshape); setupSlideshowAnimation(); } }