fix: Prevent memory leak when updating shortcuts (#443)
Shortcuts were being updated using `MainActivity.this` as the `Context` and leaking in `ShortcutManagerCompat`. Use the application context to fix this.
This commit is contained in:
parent
0d826bc2d6
commit
2cf7c072ca
|
@ -1025,7 +1025,7 @@ class MainActivity : BottomSheetActivity(), ActionButtonActivity, MenuProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
updateProfiles()
|
updateProfiles()
|
||||||
updateShortcut(this, accountManager.activeAccount!!)
|
updateShortcut(applicationContext, accountManager.activeAccount!!)
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("CheckResult")
|
@SuppressLint("CheckResult")
|
||||||
|
|
Loading…
Reference in New Issue