Merge "Only show error if screenshot process dies within timeout period" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3a51a85aaf
@@ -351,8 +351,11 @@ public class ScreenshotHelper {
|
||||
mContext.unbindService(mScreenshotConnection);
|
||||
mScreenshotConnection = null;
|
||||
mScreenshotService = null;
|
||||
handler.removeCallbacks(mScreenshotTimeout);
|
||||
notifyScreenshotError();
|
||||
// only log an error if we're still within the timeout period
|
||||
if (handler.hasCallbacks(mScreenshotTimeout)) {
|
||||
handler.removeCallbacks(mScreenshotTimeout);
|
||||
notifyScreenshotError();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user