Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
206 commits
Select commit Hold shift + click to select a range
cd96d9a
add video fetching
AndyScherzinger Apr 3, 2017
8c601c0
add videos to the list
AndyScherzinger Apr 3, 2017
6b385ec
remove logs
AndyScherzinger Apr 3, 2017
d37ed3e
fix video thumbnails
AndyScherzinger Apr 3, 2017
6fa0b76
simplified thumbnail generation
AndyScherzinger Apr 3, 2017
63475bd
add icons to the grid headers depending on the type
AndyScherzinger Apr 3, 2017
94b1eff
fix codacy
AndyScherzinger Apr 3, 2017
40430c9
add folder type to persistent entity
AndyScherzinger Apr 4, 2017
f9a84c4
create folder icon
AndyScherzinger Apr 4, 2017
d715279
add item to the top (WiP)
AndyScherzinger Apr 4, 2017
30bc511
fixes after rebase for DB upgrade routine
AndyScherzinger Apr 20, 2017
1a18197
custom folder icon
AndyScherzinger Apr 25, 2017
c504d6a
also use star folder for action item
AndyScherzinger Apr 25, 2017
8a64b5c
fixed layout not displaying app bar
AndyScherzinger Apr 27, 2017
f2c6ff3
Add custom folder icon
mario May 3, 2017
e106bb1
Custom folder RV item
mario May 4, 2017
d1f3b0a
Fix all folders
mario May 4, 2017
d9ad9d5
Enable auto upload for all
mario May 4, 2017
cdcbd4b
Add migration procedures
mario May 4, 2017
d48d57e
Clean up DB upgrade
mario May 5, 2017
2bd5cdc
Clean up in file content provider
mario May 5, 2017
93c19a7
more logging while migrating data.
AndyScherzinger May 5, 2017
3d5634f
db v20 is also on master, v21 now has to be used so development doesn…
AndyScherzinger May 5, 2017
598aea6
fix limit variable to prevent NPE
AndyScherzinger May 5, 2017
4461118
Some work on a new job for AU
mario May 5, 2017
f846202
Add counting magic
mario May 5, 2017
6ea762a
Change to 1.8
mario May 5, 2017
4600241
Fix build
mario May 5, 2017
5ea5f16
Fix issues
mario May 5, 2017
9178e23
Attempt to fix build
mario May 5, 2017
aa06b06
Clean up code
mario May 5, 2017
a088658
Document new auto upload job
mario May 5, 2017
40c7ab5
Delete shutdown receiver
mario May 6, 2017
010718d
Try to fix update
mario May 10, 2017
bf42b53
Try to fix it
mario May 10, 2017
890685c
Fix two smaller issues
mario May 10, 2017
f02657d
Acquire wakelocks to make sure all is good
mario May 10, 2017
f593548
Work a bit on locking
mario May 10, 2017
bd6d8e1
Work a bit more on stuff
mario May 11, 2017
50b100f
Add onClick
mario May 15, 2017
62b61ec
Revert "Maybe fix modified build"
mario May 15, 2017
1a54a0d
open folder sync preference for new, custom folder (work in progress)
AndyScherzinger May 15, 2017
8e6c80c
folder open icon
AndyScherzinger May 24, 2017
831a498
fix import
AndyScherzinger May 25, 2017
b62ea93
fix type
AndyScherzinger May 25, 2017
b9edd31
fix PushUtils after rebase
AndyScherzinger May 26, 2017
dc21374
fix file activity
AndyScherzinger May 27, 2017
c5c1716
implement correct local/remote folder picking in preference dialog
AndyScherzinger May 27, 2017
e286507
added todo where the list refresh should take place
AndyScherzinger May 27, 2017
2bee357
correctly persist newly created/configured custom folder and refresh …
AndyScherzinger May 27, 2017
8ec0988
fix db upgrade logic after rebase
AndyScherzinger May 29, 2017
fcfb67c
delete button (no function yet)
AndyScherzinger May 30, 2017
c26249e
fix after rebase
AndyScherzinger May 30, 2017
4fc2d62
implement delete action
AndyScherzinger May 30, 2017
6282672
set sub headline after local path has been chosen
AndyScherzinger May 30, 2017
c0c603d
hide delete button for non-custom folders
AndyScherzinger May 30, 2017
36cee05
hide delete button for unpersisted custom folders
AndyScherzinger May 30, 2017
6ab0a15
Fix the build
mario Jun 7, 2017
d747603
fix index calculation due to new position 0 custom folder create item
AndyScherzinger Jun 7, 2017
3560464
custom folder creation: use custom headline and hide enable-switch
AndyScherzinger Jun 7, 2017
3ca4154
enable/disable save button depending on local/remote folder paths pre…
AndyScherzinger Jun 7, 2017
ad59da3
local folder picker mode implementation
AndyScherzinger Jun 9, 2017
d02d8e7
fix create item click for custom folder
AndyScherzinger Jun 9, 2017
2c17ab5
fix local folder chooser menu NPE
AndyScherzinger Jun 9, 2017
a9810ad
fix file display of custom folders
AndyScherzinger Jun 9, 2017
68052d9
properly display multiple configurations for a single folder (image/v…
AndyScherzinger Jun 9, 2017
0eeb247
remove unsused constant
AndyScherzinger Jun 9, 2017
017e6ee
First commit
mario Jun 30, 2017
dcfdc5e
Change of hearts
mario Jun 30, 2017
c104c39
Ignore existing files
mario Jun 30, 2017
dab76d7
Fixes
mario Jun 30, 2017
75a8a1e
Update query
mario Jun 30, 2017
35f090e
Updates
mario Jun 30, 2017
07f439f
Some locking magic
mario Jun 30, 2017
8a5ee5a
Add support for retry & custom folders
mario Jun 30, 2017
2dbd84d
No manual retry
mario Jun 30, 2017
c84a386
Add custom folder init
mario Jun 30, 2017
80d2ba6
Fix
mario Jun 30, 2017
a11c0b2
gradle:3.0.0 fixes
AndyScherzinger Jun 30, 2017
035e8ca
Fix a bug
mario Jul 1, 2017
6d61056
Notify adapter that data changed
mario Jul 1, 2017
b0d9911
Fix duplicates
mario Jul 1, 2017
0ba2245
Fix rotation crash
mario Jul 1, 2017
27eb369
Revert gradle
mario Jul 1, 2017
79b77ec
Fix custom folders
mario Jul 1, 2017
7d9c429
Delete right button
mario Jul 1, 2017
9925e00
Try to workaround disappeared files bug
mario Jul 1, 2017
f72b19e
Fix a crashing bug
mario Jul 1, 2017
e62674a
codacy fixes
AndyScherzinger Jul 7, 2017
541c169
extract check permissions to private helper method
AndyScherzinger Jul 7, 2017
3fd8f03
fix merge media folder merge
AndyScherzinger Jul 7, 2017
ca86789
fix list updates
AndyScherzinger Jul 7, 2017
11c724a
Remove uploads menu
mario Jul 7, 2017
a80380a
Remove new auto upload job
mario Jul 7, 2017
e8d5635
Implement retry of manual uploads
mario Jul 7, 2017
cf22c7c
Clean up some code
mario Jul 7, 2017
f39b713
Show current account in uploads only
mario Jul 7, 2017
7eb1393
Fix crash
mario Jul 7, 2017
35a9b0c
Hopefully fix retries
mario Jul 8, 2017
dcb30f6
Use overwrite when updating file
mario Jul 9, 2017
e16ea0d
Hack to speed up uploads on wifi
mario Jul 9, 2017
8bec93d
Move things around
mario Jul 9, 2017
9df2abf
Prevent saturation of retried jobs
mario Jul 9, 2017
19aef47
Fix folder fetch
mario Jul 9, 2017
3d2c1d9
Try to fix 4G
mario Jul 9, 2017
359b2b4
"set up custom folder" as element in xml and not in adapter
tobiasKaminsky Jul 11, 2017
57354ec
show "add folder" correctly if other folders are present
tobiasKaminsky Jul 11, 2017
0803757
- loading task not necessary
tobiasKaminsky Jul 11, 2017
b287c5f
rename "foldersync" -> "syncedFolder(s)"
tobiasKaminsky Jul 11, 2017
392234b
Revert "Try to fix 4G"
mario Jul 11, 2017
daea19f
Fix modified files
mario Jul 11, 2017
e540e2d
Improve upload errors
mario Jul 11, 2017
3e9bb92
fixes after rebase
AndyScherzinger Jul 13, 2017
960c6bf
fix after rebase
AndyScherzinger Jul 16, 2017
abfa43d
scrollable toolbar implementation for auto upload
AndyScherzinger Jul 15, 2017
32c1b7e
further cleanup after rebase
AndyScherzinger Jul 18, 2017
62d5428
New stuff
mario Jul 20, 2017
a41e411
Pause jobs if magic is changed
mario Jul 20, 2017
d4010fa
Try to fix 4g
mario Jul 20, 2017
9ecadc8
Fix
mario Jul 20, 2017
ae091ad
fixes after rebase
AndyScherzinger Jul 23, 2017
a6c24e0
Different retry method
mario Jul 23, 2017
4f0d82c
Bit of work on uploads
mario Jul 23, 2017
8f89a85
Fix result stuff
mario Jul 23, 2017
e6441d0
More work
mario Jul 23, 2017
01b246a
fix lint error
AndyScherzinger Jul 23, 2017
ff0f971
make locl path only choosable for custom folders on creation
AndyScherzinger Jul 23, 2017
38fe1c5
Implement migration path
mario Jul 23, 2017
357b3e2
Update gradle
mario Jul 23, 2017
3b871e6
Fix failure
mario Jul 24, 2017
6db6704
Update library
mario Jul 26, 2017
fe762a8
Revert "Remove uploads menu"
mario Jul 26, 2017
f9b63ac
Revert "Delete right button"
mario Jul 26, 2017
83200c5
Return uploads control
mario Jul 26, 2017
75b7a93
Update lib version
mario Jul 26, 2017
212653f
Fix
mario Jul 26, 2017
ed3ca4b
Fix sd card stuff
mario Jul 26, 2017
a8d7af4
Fix up uploads menu
mario Jul 26, 2017
6977b96
Add expert mode
mario Jul 27, 2017
6052345
Fix a typo
mario Jul 27, 2017
652c135
Prevent several rescans in a row
mario Jul 27, 2017
10dae80
Better handling of files on sd card
mario Jul 27, 2017
d5d3310
remove unused code, fix compile error
AndyScherzinger Jul 28, 2017
1781b71
Revert "remove unused variable"
AndyScherzinger Jul 28, 2017
9d7e3f2
remove unused code
AndyScherzinger Jul 28, 2017
1481880
First batch of magic
mario Jul 30, 2017
268703f
Clean up job
mario Jul 30, 2017
ae78dc0
Better handling
mario Jul 30, 2017
8fc8b4f
Proper way to schedule
mario Jul 30, 2017
b44474c
Simplify file visitor
mario Jul 30, 2017
d38fe40
Lower delay
mario Jul 30, 2017
7231908
Revert chunked stuff
mario Jul 30, 2017
e3f27f0
Remove persistance
mario Jul 30, 2017
f20758a
Update for N
mario Jul 30, 2017
e7c9c32
Update methods
mario Jul 30, 2017
a2047f1
Fix stuff
mario Jul 31, 2017
d489bf5
Simplify
mario Jul 31, 2017
b47b01f
Codacy stuff
mario Jul 31, 2017
2ae5ce3
Stop trimming uploads
mario Jul 31, 2017
7bb6a4b
Fix retries
mario Jul 31, 2017
7605c31
Network receivers & Pre-JellyBeanMR1 charging
mario Jul 31, 2017
06cfa8e
Clarify receivers
mario Jul 31, 2017
2ce9e7b
Remove instant upload screen
mario Jul 31, 2017
3e372ea
Fix merge
mario Jul 31, 2017
a495e1c
Update from legacy
mario Jul 31, 2017
44eb9c5
Remove obsolete methods
mario Aug 1, 2017
49cf350
Put custom folders intto expert
mario Aug 1, 2017
7af943d
Remove resources
mario Aug 2, 2017
b52f8ef
Fix build
mario Aug 5, 2017
c2dd4e3
Update gradle
mario Aug 6, 2017
87c735a
Add google repo
mario Aug 7, 2017
7303c8d
Fix bugs
mario Aug 7, 2017
1859395
Fix review stuff
mario Aug 7, 2017
69573e6
Optimize imports
mario Aug 7, 2017
ee688ee
fix Combining Ellipsize and Maxlines (lint)
AndyScherzinger Aug 7, 2017
5ea04fb
lint: ignore nnio-0.2.jar
AndyScherzinger Aug 7, 2017
56e9808
fix lint errors
AndyScherzinger Aug 7, 2017
3908213
fix lint error
AndyScherzinger Aug 7, 2017
3da5eaf
fix lint error moving constant to preferences
AndyScherzinger Aug 7, 2017
3c51c69
fix further lint errors
AndyScherzinger Aug 7, 2017
4c8d01c
fix string call
AndyScherzinger Aug 7, 2017
30b0e31
update multidex version
AndyScherzinger Aug 7, 2017
405de88
remove first batch of unused resources
AndyScherzinger Aug 7, 2017
f081e41
remove further unused ressources (lint)
AndyScherzinger Aug 7, 2017
25c6d84
rename icon work that isn't a menu icon
AndyScherzinger Aug 7, 2017
36a9d18
lint: remove hardcoded strings
AndyScherzinger Aug 7, 2017
9f176b6
CR: use enum instead of Integer
AndyScherzinger Aug 7, 2017
bc221b0
file line length
AndyScherzinger Aug 7, 2017
6b8b167
codacy: remove unused code
AndyScherzinger Aug 7, 2017
182b566
remove further unused resources
AndyScherzinger Aug 7, 2017
21275d2
lint: remove unused resources
AndyScherzinger Aug 7, 2017
0e9f510
removing unsed reources
AndyScherzinger Aug 7, 2017
a60ffda
fix codacy warnings
AndyScherzinger Aug 7, 2017
a300dd2
fix some rtl warnings
AndyScherzinger Aug 7, 2017
57da5cf
add content description and rtl fixes
AndyScherzinger Aug 7, 2017
c14d8e2
remove unused layouts
AndyScherzinger Aug 7, 2017
697249e
Drone: update Lint results to reflect reduced error/warning count [sk…
Aug 7, 2017
ece0d72
fix identation
AndyScherzinger Aug 8, 2017
ba0838a
minor code formatting cleanups
AndyScherzinger Aug 8, 2017
ee471e0
fix RTL issue
AndyScherzinger Aug 8, 2017
780d252
update to gradle gradle-4.1 & fixing deprecated gradle API calls
AndyScherzinger Aug 8, 2017
14d5a76
remove further unused code
AndyScherzinger Aug 8, 2017
1fb8012
fix folder migration
AndyScherzinger Aug 8, 2017
ea0ee78
replace constant: ../../../src/main/java/com/owncloud/android/ui/help…
tobiasKaminsky Aug 8, 2017
1d1c196
fix: ThemeUtils.java:257: AppCompatCheckBox.setSupportButtonTintList …
tobiasKaminsky Aug 8, 2017
de5777f
LoadingDialog.java:50: Avoid non-default constructors in fragments
tobiasKaminsky Aug 8, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
100 changes: 49 additions & 51 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ buildscript {
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath 'com.android.tools.build:gradle:3.0.0-alpha9'
classpath 'com.google.gms:google-services:3.0.0'
}
}
Expand All @@ -29,7 +30,7 @@ configurations.all {
}

ext {
supportLibraryVersion = '25.0.0'
supportLibraryVersion = '25.2.0'
googleLibraryVersion = '10.2.4'

travisBuild = System.getenv("TRAVIS") == "true"
Expand All @@ -44,6 +45,7 @@ repositories {
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
google()

flatDir {
dirs 'libs'
Expand All @@ -63,7 +65,7 @@ android {
}

compileSdkVersion 25
buildToolsVersion '25.0.0'
buildToolsVersion '25.0.2'

defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -78,14 +80,18 @@ android {
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure

flavorDimensions "default"

productFlavors {
// used for f-droid
generic {
applicationId 'com.nextcloud.client'
dimension "default"
}

gplay {
applicationId 'com.nextcloud.client'
dimension "default"
}

modified {
Expand All @@ -94,6 +100,7 @@ android {
// domain name
// .client
applicationId 'com.custom.client'
dimension "default"
}
}

Expand All @@ -111,11 +118,6 @@ android {
preDexLibraries = preDexEnabled && !travisBuild
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}

packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
Expand Down Expand Up @@ -143,10 +145,10 @@ android {
xml.enabled = false
html.enabled = true
xml {
destination "$project.buildDir/reports/pmd/pmd.xml"
destination = file("$project.buildDir/reports/pmd/pmd.xml")
}
html {
destination "$project.buildDir/reports/pmd/pmd.html"
destination = file("$project.buildDir/reports/pmd/pmd.html")
}
}
}
Expand All @@ -165,67 +167,63 @@ android {
xml.enabled = false
html.enabled = true
html {
destination "$project.buildDir/reports/findbugs/findbugs.html"
destination = file("$project.buildDir/reports/findbugs/findbugs.html")
}
}
classpath = files()
}
check.dependsOn 'checkstyle', 'findbugs', 'pmd', 'lint'

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
/// dependencies for app building
compile name: 'touch-image-view'
compile 'com.android.support:multidex:1.0.1'

compile 'com.github.nextcloud:android-library:1.0.22'
compile "com.android.support:support-v4:${supportLibraryVersion}"
compile "com.android.support:design:${supportLibraryVersion}"
compile 'com.jakewharton:disklrucache:2.0.2'
compile "com.android.support:appcompat-v7:${supportLibraryVersion}"
compile "com.android.support:cardview-v7:${supportLibraryVersion}"
compile 'com.github.tobiasKaminsky:android-floating-action-button:1.10.2'
compile 'com.google.code.findbugs:annotations:2.0.1'
compile group: 'commons-io', name: 'commons-io', version: '2.4'
compile 'com.github.evernote:android-job:v1.1.9'
compile 'com.jakewharton:butterknife:8.4.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'com.googlecode.ez-vcard:ez-vcard:0.10.2'

implementation name: 'touch-image-view'
implementation 'com.android.support:multidex:1.0.2'
implementation 'com.github.nextcloud:android-library:1.0.23'
implementation "com.android.support:support-v4:${supportLibraryVersion}"
implementation "com.android.support:design:${supportLibraryVersion}"
implementation 'com.jakewharton:disklrucache:2.0.2'
implementation "com.android.support:appcompat-v7:${supportLibraryVersion}"
implementation "com.android.support:cardview-v7:${supportLibraryVersion}"
implementation "com.android.support:exifinterface:${supportLibraryVersion}"
implementation 'com.github.tobiasKaminsky:android-floating-action-button:1.10.2'
implementation 'com.google.code.findbugs:annotations:2.0.1'
implementation 'commons-io:commons-io:2.5'
implementation 'com.github.evernote:android-job:v1.1.11'
implementation 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
implementation 'org.greenrobot:eventbus:3.0.0'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.2'
implementation 'org.lukhnos:nnio:0.2'
// uncomment for gplay, modified
// compile "com.google.firebase:firebase-messaging:${googleLibraryVersion}"
// compile "com.google.android.gms:play-services-base:${googleLibraryVersion}"

compile 'org.parceler:parceler-api:1.1.6'
// implementation "com.google.firebase:firebase-messaging:${googleLibraryVersion}"
// implementation "com.google.android.gms:play-services-base:${googleLibraryVersion}"
implementation 'org.parceler:parceler-api:1.1.6'
annotationProcessor 'org.parceler:parceler:1.1.6'

compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.caverock:androidsvg:1.2.1'

implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.caverock:androidsvg:1.2.1'
/// dependencies for local unit tests
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'

testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:1.10.19'
/// dependencies for instrumented tests
// JUnit4 Rules
androidTestCompile 'com.android.support.test:rules:0.5'

androidTestImplementation 'com.android.support.test:rules:0.5'
// Android JUnit Runner
androidTestCompile 'com.android.support.test:runner:0.5'

androidTestImplementation 'com.android.support.test:runner:0.5'
// Android Annotation Support
androidTestCompile "com.android.support:support-annotations:${supportLibraryVersion}"

androidTestImplementation "com.android.support:support-annotations:${supportLibraryVersion}"
// Espresso core
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'

androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
// UIAutomator - for cross-app UI tests, and to grant screen is turned on in Espresso tests
//androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
//androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
// fix conflict in dependencies; see http://g.co/androidstudio/app-test-app-conflict for details
//androidTestCompile "com.android.support:support-annotations:${supportLibraryVersion}"

//androidTestImplementation "com.android.support:support-annotations:${supportLibraryVersion}"
implementation 'org.jetbrains:annotations:15.0'
}

configurations.all {
Expand Down
1 change: 1 addition & 0 deletions drawable_resources/ic_folder_star.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
android.enableAapt2=false
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Mar 15 00:10:20 CET 2017
#Fri May 05 19:09:31 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
1 change: 1 addition & 0 deletions lint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<lint>
<issue id="InvalidPackage">
<ignore path="**/freemarker-2.3.23.jar"/>
<ignore path="**/nnio-0.2.jar"/>
</issue>
</lint>
2 changes: 1 addition & 1 deletion scripts/lint/lint-results.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DO NOT TOUCH; GENERATED BY DRONE
<span class="mdl-layout-title">Lint Report: 10 errors and 676 warnings</span>
<span class="mdl-layout-title">Lint Report: 6 errors and 653 warnings</span>
4 changes: 2 additions & 2 deletions src/gplay/java/com/owncloud/android/utils/PushUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private static void deleteRegistrationForAccount(Account account) {
remoteOperationResult = unregisterAccountDeviceForProxyOperation.execute(mClient);

if (remoteOperationResult.isSuccess()) {
arbitraryDataProvider.deleteKeyForAccount(account, KEY_PUSH);
arbitraryDataProvider.deleteKeyForAccount(account.name, KEY_PUSH);
}
}
}
Expand Down Expand Up @@ -244,7 +244,7 @@ public static void pushRegistrationToServer() {
PushConfigurationState pushArbitraryData = new PushConfigurationState(token,
pushResponse.getDeviceIdentifier(), pushResponse.getSignature(),
pushResponse.getPublicKey(), false);
arbitraryDataProvider.storeOrUpdateKeyValue(account, KEY_PUSH,
arbitraryDataProvider.storeOrUpdateKeyValue(account.name, KEY_PUSH,
gson.toJson(pushArbitraryData));
}
}
Expand Down
42 changes: 8 additions & 34 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<activity android:name=".ui.activity.ParticipateActivity" />
<activity android:name=".ui.activity.ActivitiesListActivity"
android:configChanges="orientation|screenSize|keyboardHidden" />
<activity android:name=".ui.activity.FolderSyncActivity" />
<activity android:name=".ui.activity.SyncedFoldersActivity"/>
<activity android:name=".ui.activity.UploadFilesActivity" />
<activity android:name=".ui.activity.ExternalSiteWebView"
android:configChanges="orientation|screenSize|keyboardHidden" />
Expand Down Expand Up @@ -120,6 +120,11 @@
android:label="@string/app_name"
android:theme="@style/Theme.ownCloud.Fullscreen" />

<service
android:name=".jobs.NContentObserverJob"
android:permission="android.permission.BIND_JOB_SERVICE" >
</service>

<service
android:name=".authentication.AccountAuthenticatorService"
android:exported="true" >
Expand All @@ -131,7 +136,7 @@
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>
<service android:name=".services.observer.SyncedFolderObserverService"/>

<service
android:name=".syncadapter.FileSyncService"
android:exported="true" >
Expand Down Expand Up @@ -160,7 +165,7 @@
android:label="@string/search_users_and_groups_hint" />

<provider
android:name="org.nextcloud.providers.DocumentsStorageProvider"
android:name=".providers.DocumentsStorageProvider"
android:authorities="@string/document_provider_authority"
android:exported="true"
android:grantUriPermissions="true"
Expand Down Expand Up @@ -226,43 +231,12 @@
<activity android:name=".ui.activity.UploadListActivity" />
<activity android:name=".ui.activity.WhatsNewActivity"
android:theme="@style/Theme.ownCloud.noActionBar.Login" />

<receiver android:name=".files.services.ConnectivityActionReceiver"
android:enabled="true" android:label="ConnectivityActionReceiver">
<intent-filter>
<!--action android:name="android.net.conn.CONNECTIVITY_CHANGE"/-->
<action android:name="android.net.wifi.STATE_CHANGE"/>
<action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
</intent-filter>
</receiver>
<receiver android:name=".files.InstantUploadBroadcastReceiver">
<intent-filter>

<!-- unofficially supported by many Android phones but not by HTC devices: -->
<action android:name="com.android.camera.NEW_PICTURE" />
<!-- officially supported since Android 4.0 (SDK 14, works even for HTC devices): -->
<action android:name="android.hardware.action.NEW_PICTURE" />

<data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
<action android:name="android.hardware.action.NEW_VIDEO" />

<data android:mimeType="video/*" />
</intent-filter>
</receiver>
<receiver android:name=".files.BootupBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver android:name=".services.ShutdownReceiver">
<intent-filter>
<action android:name="android.intent.action.ACTION_SHUTDOWN" />
<action android:name="android.intent.action.QUICKBOOT_POWEROFF" />
</intent-filter>
</receiver>


<service android:name=".services.observer.FileObserverService" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public abstract class SectionedRecyclerViewAdapter<VH extends RecyclerView.ViewH

private final ArrayMap<Integer, Integer> mHeaderLocationMap;
private GridLayoutManager mLayoutManager;
private ArrayMap<Integer, Integer> mSpanMap;
private boolean mShowHeadersForEmptySections;

public SectionedRecyclerViewAdapter() {
Expand Down
Loading