mirror of https://github.com/M66B/FairEmail.git
Debug
This commit is contained in:
parent
5ef43f1ac6
commit
2b2e8bf1e4
|
@ -1233,8 +1233,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
}, new Html.TagHandler() {
|
}, new Html.TagHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handleTag(boolean opening, String tag, Editable output, XMLReader xmlReader) {
|
public void handleTag(boolean opening, String tag, Editable output, XMLReader xmlReader) {
|
||||||
if (BuildConfig.DEBUG)
|
//if (BuildConfig.DEBUG)
|
||||||
Log.i("HTML tag=" + tag + " opening=" + opening);
|
// Log.i("HTML tag=" + tag + " opening=" + opening);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -340,7 +340,7 @@ public class FragmentSetup extends FragmentBase {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
ConnectivityManager cm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
|
ConnectivityManager cm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||||
boolean saving = (cm.getRestrictBackgroundStatus() == ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED);
|
boolean saving = (cm.getRestrictBackgroundStatus() == ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED);
|
||||||
btnData.setVisibility(saving ? View.VISIBLE : View.GONE);
|
btnData.setVisibility(saving || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue