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
Frank Tobin
Nebulo
Commits
b2a76ed4
Commit
b2a76ed4
authored
Dec 29, 2020
by
Daniel Wolf
Browse files
Number might be null here
parent
421b1fcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/fragment/DnsRuleFragment.kt
View file @
b2a76ed4
...
...
@@ -524,7 +524,7 @@ class DnsRuleFragment : Fragment() {
private
fun
updateRuleCountTitle
()
{
activity
?.
runOnUiThread
{
(
activity
as
AppCompatActivity
?)
?.
supportActionBar
?.
subtitle
=
if
(
getPreferences
().
dnsRulesEnabled
)
{
val
formattedString
=
getPreferences
().
numberFormatter
.
format
(
totalRuleCount
)
val
formattedString
=
getPreferences
().
numberFormatter
.
format
(
totalRuleCount
?:
0
)
resources
.
getQuantityString
(
R
.
plurals
.
window_dnsrules_subtitle
,
totalRuleCount
!!
.
toInt
(),
formattedString
)
}
else
null
}
...
...
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