Skip to content

Conversation

@bmarty
Copy link
Member

@bmarty bmarty commented Jan 3, 2022

Remove unused methods.

Following change from PR #4745

Remove unused methods.
@github-actions
Copy link

github-actions bot commented Jan 3, 2022

Unit Test Results

  66 files  ±0    66 suites  ±0   51s ⏱️ -3s
135 tests ±0  135 ✔️ ±0  0 💤 ±0  0 ±0 
418 runs  ±0  418 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 74af485. ± Comparison against base commit 9534abe.

@RequiresApi(Build.VERSION_CODES.O)
fun startInstallFromSourceIntent(context: Context, activityResultLauncher: ActivityResultLauncher<Intent>) {
val intent = Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES)
.setData(Uri.parse(String.format("package:%s", context.packageName)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nit: this was already here but it could be nice to avoid String.format in favour of a more kotlin idiomatic "package:${context.packageName}"

For this usecase it's not very relevant butString.format is also quite heavy relative to a StringBuilder https://cowtowncoder.medium.com/measuring-performance-of-java-string-format-or-lack-thereof-2e1c6a13362c

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants