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
Wade
DnsChanger
Commits
dde3e352
Commit
dde3e352
authored
Apr 15, 2018
by
Daniel Wolf
Browse files
Don't show the error dialog for anything anymore
parent
d58751bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/dnschanger/DNSChanger.java
View file @
dde3e352
package
com.frostnerd.dnschanger
;
import
android.app.Application
;
import
android.database.sqlite.SQLiteException
;
import
com.frostnerd.dnschanger.activities.ErrorDialogActivity
;
import
com.frostnerd.dnschanger.util.ThemeHandler
;
...
...
@@ -31,8 +32,8 @@ public class DNSChanger extends Application {
private
Thread
.
UncaughtExceptionHandler
defaultHandler
;
private
boolean
showErrorDialog
(
Throwable
exception
)
{
return
true
;
//
return exception.getMessage() != null && exception.getMessage().toLowerCase().contains("cannot create interface");
if
(
exception
instanceof
SQLiteException
||
(
exception
.
getCause
()
!=
null
&&
exception
instanceof
SQLiteException
))
return
true
;
return
exception
.
getMessage
()
!=
null
&&
exception
.
getMessage
().
toLowerCase
().
contains
(
"cannot create interface"
);
}
@Override
...
...
Write
Preview
Markdown
is supported
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