Debug cleanup

This commit is contained in:
M66B 2021-10-05 18:13:37 +02:00
parent f495eb51ab
commit 302c3c9f54
1 changed files with 8 additions and 4 deletions

View File

@ -686,10 +686,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
}, new Runnable() {
@Override
public void run() {
if (BuildConfig.DEBUG) {
ContactInfo.clearCache(ActivityView.this, true);
ToastEx.makeText(ActivityView.this, R.string.title_completed, Toast.LENGTH_LONG).show();
}
if (BuildConfig.DEBUG)
try {
DnsBlockList.clearCache();
ContactInfo.clearCache(ActivityView.this, true);
ToastEx.makeText(ActivityView.this, R.string.title_completed, Toast.LENGTH_LONG).show();
} catch (Throwable ex) {
Log.unexpectedError(getSupportFragmentManager(), ex);
}
}
}));