Bug 1129433 - Show "# tabs opened in background" notification in system tray (r=mcomella)

This commit is contained in:
Martyn Haigh
2015-03-20 13:42:09 +00:00
parent 95dba84a40
commit 4e482cae7b
5 changed files with 73 additions and 11 deletions

View File

@@ -6,6 +6,7 @@
package org.mozilla.gecko.tabqueue;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.PixelFormat;
@@ -160,8 +161,10 @@ public class TabQueueService extends Service {
executorService.submit(new Runnable() {
@Override
public void run() {
final GeckoProfile profile = GeckoProfile.get(getApplicationContext());
TabQueueHelper.queueURL(profile, intentData, filename);
Context applicationContext = getApplicationContext();
final GeckoProfile profile = GeckoProfile.get(applicationContext);
int tabsQueued = TabQueueHelper.queueURL(profile, intentData, filename);
TabQueueHelper.showNotification(applicationContext, tabsQueued);
}
});
}