Fix requiresCharging false value ignored issue

am: e33c3c81af

Change-Id: Ia96915b00e274ed6c7c8fdaea46ee5a0ba83bdcb
This commit is contained in:
Shreyas Basarge
2017-02-08 00:58:47 +00:00
committed by android-build-merger

View File

@@ -351,7 +351,7 @@ public class SyncRequest implements Parcelable {
* @param requiresCharging true if sync requires the phone to be plugged in. Default false.
*/
public Builder setRequiresCharging(boolean requiresCharging) {
mRequiresCharging = true;
mRequiresCharging = requiresCharging;
return this;
}