From c151065831332c4f2df2eb6ee8d870aa31fc5b06 Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Mon, 30 Jul 2018 18:40:12 +0300 Subject: [PATCH] Swap uri and appPackage in the OsmandAidlHelper --- .../src/net/osmand/telegram/TelegramApplication.kt | 2 +- .../src/net/osmand/telegram/helpers/OsmandAidlHelper.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() }