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

Commit 1323ab83 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 1240719a 42a46157
Loading
Loading
Loading
Loading
+10 −2
Original line number Original line Diff line number Diff line
@@ -80,7 +80,11 @@ public class DigitalClock extends LinearLayout {
                    }
                    }
                });
                });
            } else {
            } else {
                try {
                    mContext.unregisterReceiver(this);
                    mContext.unregisterReceiver(this);
                } catch (RuntimeException e) {
                    // Shouldn't happen
                }
            }
            }
        }
        }
    };
    };
@@ -124,7 +128,11 @@ public class DigitalClock extends LinearLayout {
                digitalClock.setDateFormat();
                digitalClock.setDateFormat();
                digitalClock.updateTime();
                digitalClock.updateTime();
            } else {
            } else {
                try {
                    mContext.getContentResolver().unregisterContentObserver(this);
                    mContext.getContentResolver().unregisterContentObserver(this);
                } catch (RuntimeException e) {
                    // Shouldn't happen
                }
            }
            }
        }
        }
    }
    }