-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload when charging #745
Upload when charging #745
Conversation
Nice! I just added KEY_WHILE_CHARGING_ONLY to the new FileUploadService (--> https://github.com/owncloud/android/tree/reliable_uploads). It'll take care that upload does not start while discharging. Starting at the right moment is missing still though. I think the broadcast receiver for ACTION_POWER_CONNECTED should go into a separate class (just like BootupBroadcastReceiver). There may be other features to come which also rely in that event. |
But this is an option like for instant uploads? |
Yes, it is but it can also be used for other uploads.
No need to worry about being not connected or not charging. The UploadService will handle that. |
@tobiasKaminsky can you post a screenshot of how this looks like so I can design-review it? |
Hi @tobiasKaminsky! I'm reviewing this PR. The branch is outdated, but don't worry. I will updated it. |
Conflicts: res/values-fr/strings.xml res/xml/preferences.xml
</PreferenceCategory> | ||
|
||
<PreferenceCategory android:title="@string/prefs_category_instant_uploading" android:key="instant_uploading_category"> | ||
<com.owncloud.android.ui.CheckBoxPreferenceWithLongTitle android:key="instant_uploading" | ||
<PreferenceCategory android:title="@string/prefs_category_instant_uploading" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, it is necessary to review the order in the preferences.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jancborchardt can review the order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which order is this actually?
@jancborchardt Please have a look here |
Looks good! Just a few details:
|
ref 1:"Upload folder"? We do not support this currently, or? 2: I will change |
… uploadWhenCharging
@tobiasKaminsky right, if we call it »Upload folder« it might get confusing. »Upload path« is better, but with »path« in lowercase. |
@jancborchardt Remaining question is, if "when charging" should be an independent setting for picture and video? This could be a good idea as videos are very big and can drain the battery very quick... |
@tobiasKaminsky yeah, I would make the setting independent. Right now on the very top it’s kind of confusing anyway. |
Yeah, looks good! |
masensio seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
See #465