Bug 1129433 - Show "# tabs opened in background" notification in system tray (r=mcomella)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user