mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1159752 - Visible & selected tab incorrect when tab queue loaded and Fx isn't loaded (r=rnewman)
--HG-- extra : rebase_source : ec506cd566f5f78519cbd3451720e5b4a413c185 extra : amend_source : d5c0de92d3552fb5979270ba3e5666f13cefd4cf
This commit is contained in:
parent
8fc8519c68
commit
463d174283
@ -202,7 +202,13 @@ public class TabQueueService extends Service {
|
||||
}
|
||||
|
||||
private void removeView() {
|
||||
windowManager.removeView(toastLayout);
|
||||
try {
|
||||
windowManager.removeView(toastLayout);
|
||||
} catch (IllegalArgumentException | IllegalStateException e) {
|
||||
// This can happen if the Service is killed by the system. If this happens the View will have already
|
||||
// been removed but the runnable will have been kept alive.
|
||||
Log.e(LOGTAG, "Error removing Tab Queue toast from service", e);
|
||||
}
|
||||
}
|
||||
|
||||
private void addURLToTabQueue(final Intent intent, final String filename) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user