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

* commit '42a461570b9c5502959e429c4f16ca5ca860c4f2':
  Fix 3379239: Catch exceptions from workaround for OOM.
This commit is contained in:
Jim Miller
2011-01-23 14:30:07 -08:00
committed by Android Git Automerger

View File

@@ -80,7 +80,11 @@ public class DigitalClock extends LinearLayout {
}
});
} else {
mContext.unregisterReceiver(this);
try {
mContext.unregisterReceiver(this);
} catch (RuntimeException e) {
// Shouldn't happen
}
}
}
};
@@ -124,7 +128,11 @@ public class DigitalClock extends LinearLayout {
digitalClock.setDateFormat();
digitalClock.updateTime();
} else {
mContext.getContentResolver().unregisterContentObserver(this);
try {
mContext.getContentResolver().unregisterContentObserver(this);
} catch (RuntimeException e) {
// Shouldn't happen
}
}
}
}