Replace hardcoded values
This commit is contained in:
parent
20c14b5496
commit
7f0ca8831e
1 changed files with 1 additions and 3 deletions
|
@ -45,10 +45,8 @@ class TelegramApplication : Application(), OsmandHelperListener {
|
|||
osmandAidlHelper.listener = object : OsmandAidlHelper.OsmandHelperListener {
|
||||
override fun onOsmandConnectionStateChanged(connected: Boolean) {
|
||||
if (connected) {
|
||||
val basePackage = "net.osmand.telegram"
|
||||
val appPackage = if (BuildConfig.DEBUG) "$basePackage.debug" else basePackage
|
||||
osmandAidlHelper.setNavDrawerItems(
|
||||
appPackage,
|
||||
applicationContext.packageName,
|
||||
listOf(getString(R.string.app_name)),
|
||||
listOf("osmand_telegram://main_activity"),
|
||||
listOf("ic_action_location_sharing_app"),
|
||||
|
|
Loading…
Reference in a new issue