-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many debug message with your library #10
Comments
Thanks for your comments. Did you mean the log messages of the following type are only logged when you integrated this library, correct? Also, did you install this library with default options? For example, public class ExampleApplication extends Application {
@Override public void onCreate() {
super.onCreate();
DebugOverlay.with(this).install();
// Normal app init code...
}
} The issue is new to me since I didn't see that type of log message at all when testing this library with a couple of Xperia and Nexus devices. After I get your response, I will try to re-produce it on Galaxy devices. |
Thanks for your quick response! I tried to re-produce this issue on my old Galaxy S3 and Note 2, but the attempt was unsuccessful. Anyway, you can do something like below meanwhile to avoid seeing the infinite TextView's logs. new DebugOverlay.Builder(this)
.modules(new LogcatModule(LogcatModule.DEFAULT_MAX_LINES,
new LogcatLineFilter() {
@Override
public boolean shouldFilterOut(LogcatLine.Priority priority, @NonNull String tag) {
return priority.getIntValue() < LogcatLine.Priority.DEBUG.getIntValue() || ("TextView".equals(tag) &&
priority == LogcatLine.Priority.DEBUG);
}
}))
.position(Position.BOTTOM_START)
.bgColor(Color.parseColor("#60000000"))
.textColor(Color.MAGENTA)
.textSize(14f)
.textAlpha(.8f)
.allowSystemLayer(true)
.notification(true, MainMenu.class.getName())
.build()
.install(); Please let me know if this does not work and I will let you know once I find a better way to avoid this issue. |
Thank you for your answer, I tried your proposal and it works. It's good for me, if you need more info on the bug or a test don't hesitate! |
This comes from calls to I believe you can safely change the calls to (omit the second parameter) Galaxy 7 DUOS (SM-G920FD), Android 7.0 |
When I use your library I have a lot of messages of this type (about 20 per second!)
D/TextView: setTypeface with style : 0
I also have a suggestion for you: add an option for hide the logs by default
Android Nougat 7.0 - Samsung Galaxy S7 Edge
The text was updated successfully, but these errors were encountered: