stop settings from crashing when building with different package id

This commit is contained in:
Daniel Gultsch 2018-02-21 10:30:38 +01:00
parent 8d9d96d4e1
commit 5e7d1f7bcc
2 changed files with 3 additions and 2 deletions

View File

@ -72,6 +72,7 @@ android {
versionName "1.23.8"
archivesBaseName += "-$versionName"
applicationId "eu.siacs.conversations"
resValue "string", "applicationId", applicationId
}
dataBinding {

View File

@ -89,7 +89,7 @@
android:title="@string/title_pref_quiet_hours">
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="eu.siacs.conversations"
android:targetPackage="@string/applicationId"
android:targetClass="eu.siacs.conversations.ui.SettingsActivity" >
<extra android:name="page" android:value="quiet_hours" />
</intent>
@ -193,7 +193,7 @@
android:title="@string/pref_expert_options">
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="eu.siacs.conversations"
android:targetPackage="@string/applicationId"
android:targetClass="eu.siacs.conversations.ui.SettingsActivity" >
<extra android:name="page" android:value="expert" />
</intent>