-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix other issues
- Loading branch information
Showing
78 changed files
with
1,775 additions
and
1,278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
app/src/main/java/com/seafile/seadroid2/config/OriGlideUrl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.seafile.seadroid2.config; | ||
|
||
import com.bumptech.glide.load.model.GlideUrl; | ||
import com.bumptech.glide.load.model.Headers; | ||
import com.seafile.seadroid2.framework.util.SLogs; | ||
|
||
import java.net.URL; | ||
|
||
public class OriGlideUrl extends GlideUrl { | ||
private String oriKey; | ||
|
||
public OriGlideUrl(URL url) { | ||
super(url); | ||
} | ||
|
||
public OriGlideUrl(String url) { | ||
super(url); | ||
} | ||
|
||
public OriGlideUrl(String url, String oriKey) { | ||
super(url); | ||
this.oriKey = oriKey; | ||
} | ||
|
||
|
||
public OriGlideUrl(URL url, Headers headers) { | ||
super(url, headers); | ||
} | ||
|
||
public OriGlideUrl(String url, Headers headers) { | ||
super(url, headers); | ||
} | ||
|
||
@Override | ||
public String getCacheKey() { | ||
return oriKey; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/seafile/seadroid2/framework/data/model/ContextModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.seafile.seadroid2.framework.data.model; | ||
|
||
public class ContextModel { | ||
public String repo_id; | ||
public String repo_name; //repo_name | ||
|
||
public String type; //repo/dirent | ||
|
||
/** | ||
* parent_dir + name | ||
*/ | ||
public String full_path; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.