-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
124 changed files
with
2,227 additions
and
1,280 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
71 changes: 0 additions & 71 deletions
71
app/src/main/java/com/seafile/seadroid2/bottomsheetmenu/BottomSheetMenuAdapter.java
This file was deleted.
Oops, something went wrong.
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
34 changes: 0 additions & 34 deletions
34
app/src/main/java/com/seafile/seadroid2/framework/data/db/dao/CertCacheDAO.java
This file was deleted.
Oops, something went wrong.
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
44 changes: 44 additions & 0 deletions
44
app/src/main/java/com/seafile/seadroid2/framework/data/db/dao/PermissionDAO.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,44 @@ | ||
package com.seafile.seadroid2.framework.data.db.dao; | ||
|
||
import androidx.room.Dao; | ||
import androidx.room.Insert; | ||
import androidx.room.OnConflictStrategy; | ||
import androidx.room.Query; | ||
import androidx.room.Update; | ||
|
||
import com.seafile.seadroid2.framework.data.db.entities.FileTransferEntity; | ||
import com.seafile.seadroid2.framework.data.db.entities.PermissionEntity; | ||
import com.seafile.seadroid2.framework.data.db.entities.PermissionEntity; | ||
|
||
import java.util.List; | ||
|
||
import io.reactivex.Completable; | ||
import io.reactivex.Single; | ||
|
||
@Dao | ||
public interface PermissionDAO { | ||
|
||
@Query("select * from permissions where repo_id = :repoId and id = :id limit 1") | ||
List<PermissionEntity> getByIdSync(String repoId, int id); | ||
|
||
@Query("select * from permissions where repo_id = :repoId and id = :id limit 1") | ||
Single<List<PermissionEntity>> getByIdAsync(String repoId, int id); | ||
|
||
@Query("select * from permissions where repo_id = :repoId") | ||
Single<List<PermissionEntity>> getByRepoIdAsync(String repoId); | ||
|
||
|
||
@Query("DELETE FROM permissions") | ||
void deleteAll(); | ||
|
||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
void insert(PermissionEntity PermissionEntity); | ||
|
||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
void insertAllSync(List<PermissionEntity> list); | ||
|
||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
Completable insertAllAsync(List<PermissionEntity> list); | ||
|
||
|
||
} |
22 changes: 0 additions & 22 deletions
22
app/src/main/java/com/seafile/seadroid2/framework/data/db/entities/CertEntity.java
This file was deleted.
Oops, something went wrong.
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.