Commit 27e69e78 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Removed debug prints

parent 3d3f4fd6
......@@ -59,14 +59,12 @@ class PinActivity: BaseActivity() {
fun openAppIntent(context: Context, extras:Bundle? = null):Intent {
return if(shouldValidatePin(context, null)) {
println(">>>>>>>>>>>>>>>>>>>>>> ASK PIN")
val intent = Intent(context, PinActivity::class.java)
if(intent.extras != null) intent.putExtra("extras", extras)
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
intent.putExtra("pin_type", PinType.APP)
intent
} else {
println(">>>>>>>>>> TO MAIN")
Intent(context, MainActivity::class.java).apply {
if(extras != null) putExtras(extras)
}
......
......@@ -159,9 +159,7 @@ class ServerImportActivity : BaseActivity() {
}
val actualReader = JsonReader(StringReader(jsonString))
val readServer = { https: Boolean ->
println("HTTPS: $https")
val server = if (https) httpsAdapter.read(actualReader) else tlsAdapter.read(actualReader)
println("Read: $server")
if (server != null) {
servers.add(server)
true
......
......@@ -308,7 +308,6 @@ class DnsRuleFragment : Fragment() {
val id = if (newRule.isWhitelistRule()) {
getDatabase().dnsRuleDao().insertWhitelist(newRule)
if (userDnsRules.any {
println("$it vs $newRule")
it.host == newRule.host && it.type == newRule.type
}) -1L
else 0L
......
......@@ -135,7 +135,6 @@ class MainFragment : Fragment() {
prefs.edit {
prefs.dnsServerConfig = config
}
println("Saved $config")
}.show()
}
privacyStatementText.setOnClickListener {
......
......@@ -145,7 +145,6 @@ class SettingsFragment : PreferenceFragmentCompat() {
val pinValue = findPreference("pin") as EditTextPreference
pinValue.setOnPreferenceChangeListener { _, newValue ->
println(newValue)
if (newValue.toString().isNotEmpty() && newValue.toString().isInt()) {
pinValue.summary = getString(R.string.summary_preference_change_pin, newValue.toString())
true
......
......@@ -82,7 +82,6 @@ class QueryLogListFragment: Fragment(), SearchView.OnQueryTextListener {
when (data.responseSource) {
QueryListener.Source.UPSTREAM ->
if (data.getParsedResponses().any {
if (it.type == Record.TYPE.A) println((it.payload as A).toString())
(it.type == Record.TYPE.A && (it.payload as A).toString() == "0.0.0.0"
|| (it.type == Record.TYPE.AAAA && (it.payload as AAAA).toString().equalsAny("::1", "::0", "0:0:0:0:0:0:0:0", "0:0:0:0:0:0:0:1")))
}) R.drawable.ic_flag
......
......@@ -164,7 +164,6 @@ class ConfigureActivity : BaseActivity() {
private fun setHints() {
val doh = serverType.selectedItemPosition == 0
println("DOH: $doh")
primaryServer.hint = if(primaryServer.hasFocus() || primaryServerWrap.error != null) {
if(doh) getString(R.string.dialog_newserver_primaryserver_hint)
else getString(R.string.dialog_newserver_primaryserver_hint_dot)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment