Use isSyncAdapter during commit()

* And minor cleanup

Bug: 5391216
Change-Id: I8fd05c53ce32193d42f4feb37b2a1fba05c5992e
1 file changed