Swap uri and appPackage in the OsmandAidlHelper

This commit is contained in:
Alex Sytnyk 2018-07-30 18:40:12 +03:00
parent 732f3cff7c
commit c151065831
2 changed files with 3 additions and 3 deletions

View file

@ -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
)
}

View file

@ -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()
}