Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4485edce authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am 42a46157: Fix 3379239: Catch exceptions from workaround for OOM.

* commit '42a46157':
  Fix 3379239: Catch exceptions from workaround for OOM.
parents e741e540 42a46157
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -86,7 +86,11 @@ public class DigitalClock extends RelativeLayout {
                    }
                });
            } else {
                try {
                    mContext.unregisterReceiver(this);
                } catch (RuntimeException e) {
                    // Shouldn't happen
                }
            }
        }
    };
@@ -130,7 +134,11 @@ public class DigitalClock extends RelativeLayout {
                digitalClock.setDateFormat();
                digitalClock.updateTime();
            } else {
                try {
                    mContext.getContentResolver().unregisterContentObserver(this);
                } catch (RuntimeException e) {
                    // Shouldn't happen
                }
            }
        }
    }