diff --git a/OsmAnd-telegram/src/net/osmand/telegram/TelegramApplication.kt b/OsmAnd-telegram/src/net/osmand/telegram/TelegramApplication.kt index fee6c66efe..fe603aa282 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/TelegramApplication.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/TelegramApplication.kt @@ -48,8 +48,8 @@ class TelegramApplication : Application(), OsmandHelperListener { val appPackage = if (BuildConfig.DEBUG) "$basePackage.debug" else basePackage osmandAidlHelper.addOpenAppNavDrawerItem( getString(R.string.app_name), - "osmand_telegram://main_activity", appPackage, + "osmand_telegram://main_activity", -1 ) } diff --git a/OsmAnd-telegram/src/net/osmand/telegram/helpers/OsmandAidlHelper.kt b/OsmAnd-telegram/src/net/osmand/telegram/helpers/OsmandAidlHelper.kt index c2a2825769..dec592b1bb 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/helpers/OsmandAidlHelper.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/helpers/OsmandAidlHelper.kt @@ -868,10 +868,10 @@ class OsmandAidlHelper(private val app: Application) { return false } - fun addOpenAppNavDrawerItem(itemName: String, uri: String, appPackage: String, flags: Int): Boolean { + fun addOpenAppNavDrawerItem(itemName: String, appPackage: String, uri: String, flags: Int): Boolean { if (mIOsmAndAidlInterface != null) { try { - return mIOsmAndAidlInterface!!.addOpenAppNavDrawerItem(AddOpenAppNavDrawerItemParams(itemName, uri, appPackage, flags)) + return mIOsmAndAidlInterface!!.addOpenAppNavDrawerItem(AddOpenAppNavDrawerItemParams(itemName, appPackage, uri, flags)) } catch (e: RemoteException) { e.printStackTrace() }