mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Enable auto upload on Android 6+ only :-/
This commit is contained in:
parent
5c3cd5f6f8
commit
91c28ee158
4 changed files with 6 additions and 6 deletions
|
@ -58,7 +58,7 @@ public class InstantUploadBroadcastReceiver extends BroadcastReceiver {
|
|||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
|
||||
Log_OC.d(TAG, "Received: " + intent.getAction());
|
||||
if (intent.getAction().equals(NEW_PHOTO_ACTION_UNOFFICIAL)) {
|
||||
handleNewPictureAction(context, intent);
|
||||
|
|
|
@ -175,8 +175,8 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
|
|||
|
||||
setupQuotaElement();
|
||||
|
||||
// show folder sync menu item only for Android 5+
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
||||
// show folder sync menu item only for Android 6+
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
|
||||
mNavigationView.getMenu().removeItem(R.id.nav_folder_sync);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -257,7 +257,7 @@ public class FileDisplayActivity extends HookActivity
|
|||
*/
|
||||
private void upgradeNotificationForInstantUpload() {
|
||||
// check for Android 5+ if legacy instant upload is activated --> disable + show info
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP &&
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&
|
||||
(PreferenceManager.instantPictureUploadEnabled(this) ||
|
||||
PreferenceManager.instantPictureUploadEnabled(this))) {
|
||||
|
||||
|
|
|
@ -368,8 +368,8 @@ public class Preferences extends PreferenceActivity
|
|||
|
||||
mPrefInstantUploadCategory = (PreferenceCategory) findPreference("instant_uploading_category");
|
||||
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
||||
// Instant upload via preferences on pre pre Lollipop
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
|
||||
// Instant upload via preferences on pre pre M
|
||||
mPrefInstantUploadPath = findPreference("instant_upload_path");
|
||||
if (mPrefInstantUploadPath != null) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue