I was unable to replicate the bug reported in #657. However, the stack trace is pretty clear about the problem, which is WindowManager being used with an Application (not Activity) context. The defaultDisplay() and getSize() methods are deprecated also.
This PR replaces WindowManager with a more suitable way of fetching the screen resolution in Subject.
I was unable to replicate the bug reported in #657. However, the stack trace is pretty clear about the problem, which is WindowManager being used with an Application (not Activity) context. The
defaultDisplay()
andgetSize()
methods are deprecated also.This PR replaces WindowManager with a more suitable way of fetching the screen resolution in
Subject
.