Swap uri and appPackage in the OsmandAidlHelper
This commit is contained in:
parent
732f3cff7c
commit
c151065831
2 changed files with 3 additions and 3 deletions
|
@ -48,8 +48,8 @@ class TelegramApplication : Application(), OsmandHelperListener {
|
||||||
val appPackage = if (BuildConfig.DEBUG) "$basePackage.debug" else basePackage
|
val appPackage = if (BuildConfig.DEBUG) "$basePackage.debug" else basePackage
|
||||||
osmandAidlHelper.addOpenAppNavDrawerItem(
|
osmandAidlHelper.addOpenAppNavDrawerItem(
|
||||||
getString(R.string.app_name),
|
getString(R.string.app_name),
|
||||||
"osmand_telegram://main_activity",
|
|
||||||
appPackage,
|
appPackage,
|
||||||
|
"osmand_telegram://main_activity",
|
||||||
-1
|
-1
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -868,10 +868,10 @@ class OsmandAidlHelper(private val app: Application) {
|
||||||
return false
|
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) {
|
if (mIOsmAndAidlInterface != null) {
|
||||||
try {
|
try {
|
||||||
return mIOsmAndAidlInterface!!.addOpenAppNavDrawerItem(AddOpenAppNavDrawerItemParams(itemName, uri, appPackage, flags))
|
return mIOsmAndAidlInterface!!.addOpenAppNavDrawerItem(AddOpenAppNavDrawerItemParams(itemName, appPackage, uri, flags))
|
||||||
} catch (e: RemoteException) {
|
} catch (e: RemoteException) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue