Closed starshipcoder closed 4 years ago
@starshipcoder Thanks for this amazing PR! It works but I cannot fully understand how the below code works:
....
while (!(context instanceof Activity)) {
context = ((ContextWrapper)context).getBaseContext();
}
((Activity) context).getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
.....
Could you please help explain more about the code? Thanks!
Fix crash when casting class extending activity
Fix #102