Merge "Only check bg restriction if an app is idle" into pi-dev
am: a6ee4a4970

Change-Id: I5c36cd20b4d3dbd8057a8a79b92008834221035f