Skip to content

Commit

Permalink
Remove backup attributes from manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
vRallev committed Sep 23, 2015
1 parent 47ba243 commit b988f55
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 6 additions & 0 deletions library/lint.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="AllowBackup">
<ignore path="src/main/AndroidManifest.xml"/>
</issue>
</lint>
5 changes: 1 addition & 4 deletions library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>

<application
android:allowBackup="false"
android:fullBackupContent="false"
tools:ignore="UnusedAttribute">
<application tools:ignore="AllowBackup">

<service
android:name="com.evernote.android.job.v21.PlatformJobService"
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/com/evernote/android/job/Job.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public String toString() {
+ ", canceled=" + mCanceled
+ ", periodic=" + mParams.isPeriodic()
+ ", class=" + getClass().getSimpleName()
+ ", tag=" + getClass().getSimpleName()
+ ", tag=" + mParams.getTag()
+ '}';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ protected void setJobProxy(JobApi api) {
* @param request The {@link JobRequest} which will be run in the future.
*/
public void schedule(JobRequest request) {
mJobStorage.put(request);
request.setScheduledAt(System.currentTimeMillis());
mJobStorage.put(request);

JobProxy proxy = getJobProxy(request);
if (request.isPeriodic()) {
Expand Down

0 comments on commit b988f55

Please sign in to comment.