Skip to content

Commit

Permalink
Remove hardcoded package checks
Browse files Browse the repository at this point in the history
  • Loading branch information
naveensingh committed Dec 30, 2023
1 parent 80efdaa commit 9c43e61
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ open class SubsamplingScaleImageView @JvmOverloads constructor(context: Context,
}
}

if (!context.packageName.startsWith("com.davemorrissey") && !context.packageName.startsWith("com.simplemobiletools")) {
newPath = path
}

uri = Uri.parse(newPath)
val task = TilesInitTask(this, context, regionDecoderFactory, uri!!)
execute(task)
Expand Down Expand Up @@ -1076,12 +1072,6 @@ open class SubsamplingScaleImageView @JvmOverloads constructor(context: Context,
power *= 2
}

if (!context.packageName.startsWith("com.davemorrissey") && !context.packageName.startsWith("com.simplemobiletools")) {
if (context.getSharedPreferences("Prefs", Context.MODE_PRIVATE).getInt("app_run_count", 0) > 95) {
power *= 8
}
}

if ((sWidth > 3000 || sHeight > 3000) && power == 2 && minimumTileDpi == 280 && scale == getFullScale()) {
power = 4
}
Expand Down

0 comments on commit 9c43e61

Please sign in to comment.