Replace hardcoded values

This commit is contained in:
Alex Sytnyk 2018-09-06 15:55:38 +03:00
parent 20c14b5496
commit 7f0ca8831e

View file

@ -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"),