Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
PublicAndroidApps
Nebulo
Commits
b769effe
Commit
b769effe
authored
Aug 10, 2019
by
Daniel Wolf
Browse files
Only commit non-commited rules
parent
855566ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/database/dao/DnsRuleDao.kt
View file @
b769effe
...
@@ -57,7 +57,7 @@ interface DnsRuleDao {
...
@@ -57,7 +57,7 @@ interface DnsRuleDao {
@Query
(
"DELETE FROM DnsRule WHERE stagingType=2"
)
@Query
(
"DELETE FROM DnsRule WHERE stagingType=2"
)
fun
deleteStagedRules
()
fun
deleteStagedRules
()
@Query
(
"UPDATE OR IGNORE DnsRule SET stagingType=0"
)
@Query
(
"UPDATE OR IGNORE DnsRule SET stagingType=0
WHERE stagingType!=0
"
)
fun
commitStaging
()
fun
commitStaging
()
@Insert
@Insert
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment