Skip to content

Commit

Permalink
Fix something that should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mscwilson committed Apr 15, 2024
1 parent 0a11764 commit d5a3a5f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ class Subject(context: Context, config: SubjectConfigurationInterface?) {
* @param context the Android context
* @param useContextResourcesScreenResolution whether to get the size from the context resources or not
*/
private fun setDefaultScreenResolution(context: Context, useContextResourcesScreenResolution: Boolean) {
if (useContextResourcesScreenResolution) {
private fun setDefaultScreenResolution(context: Context, useContextResourcesScreenResolution: Boolean?) {
if (useContextResourcesScreenResolution == true) {
val width = context.resources.displayMetrics.widthPixels
val height = context.resources.displayMetrics.heightPixels
screenResolution = Size(width, height)
Expand Down

0 comments on commit d5a3a5f

Please sign in to comment.