Merge "Proper handle of duplicated BUGREPORT_STARTED." into nyc-dev
am: 3e39f50
* commit '3e39f50a3d384480a8892aeba782d06fcfebc867':
Proper handle of duplicated BUGREPORT_STARTED.
This commit is contained in:
@@ -409,10 +409,11 @@ public class BugreportProgressService extends Service {
|
|||||||
|
|
||||||
final BugreportInfo info = new BugreportInfo(mContext, id, pid, name, max);
|
final BugreportInfo info = new BugreportInfo(mContext, id, pid, name, max);
|
||||||
if (mProcesses.indexOfKey(id) >= 0) {
|
if (mProcesses.indexOfKey(id) >= 0) {
|
||||||
|
// BUGREPORT_STARTED intent was already received; ignore it.
|
||||||
Log.w(TAG, "ID " + id + " already watched");
|
Log.w(TAG, "ID " + id + " already watched");
|
||||||
} else {
|
return true;
|
||||||
mProcesses.put(info.id, info);
|
|
||||||
}
|
}
|
||||||
|
mProcesses.put(info.id, info);
|
||||||
// Take initial screenshot.
|
// Take initial screenshot.
|
||||||
takeScreenshot(id, false);
|
takeScreenshot(id, false);
|
||||||
updateProgress(info);
|
updateProgress(info);
|
||||||
|
|||||||
Reference in New Issue
Block a user