Replaced Linphone's Core version by SDK version in about fragment
This commit is contained in:
parent
a196529eb2
commit
c922192985
4 changed files with 12 additions and 7 deletions
|
@ -56,11 +56,15 @@ public class AboutFragment extends Fragment implements OnClickListener {
|
||||||
View view = inflater.inflate(R.layout.about, container, false);
|
View view = inflater.inflate(R.layout.about, container, false);
|
||||||
|
|
||||||
TextView aboutVersion = view.findViewById(R.id.about_android_version);
|
TextView aboutVersion = view.findViewById(R.id.about_android_version);
|
||||||
TextView aboutLiblinphoneVersion = view.findViewById(R.id.about_liblinphone_version);
|
TextView aboutLiblinphoneVersion = view.findViewById(R.id.about_liblinphone_sdk_version);
|
||||||
aboutLiblinphoneVersion.setText(
|
aboutLiblinphoneVersion.setText(
|
||||||
String.format(
|
String.format(
|
||||||
getString(R.string.about_liblinphone_version),
|
getString(R.string.about_liblinphone_sdk_version),
|
||||||
LinphoneManager.getLc().getVersion()));
|
getString(R.string.linphone_sdk_version)
|
||||||
|
+ " ("
|
||||||
|
+ getString(R.string.linphone_sdk_branch)
|
||||||
|
+ ")"));
|
||||||
|
// We can't access a library's BuildConfig, so we have to set it as a resource
|
||||||
aboutVersion.setText(
|
aboutVersion.setText(
|
||||||
String.format(
|
String.format(
|
||||||
getString(R.string.about_version),
|
getString(R.string.about_version),
|
||||||
|
|
|
@ -61,12 +61,12 @@
|
||||||
android:text="@string/about_version" />
|
android:text="@string/about_version" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/about_liblinphone_version"
|
android:id="@+id/about_liblinphone_sdk_version"
|
||||||
style="@style/font12"
|
style="@style/font12"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="left"
|
android:layout_gravity="left"
|
||||||
android:text="@string/about_liblinphone_version" />
|
android:text="@string/about_liblinphone_sdk_version" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -48,13 +48,13 @@
|
||||||
android:text="@string/about_version" />
|
android:text="@string/about_version" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/about_liblinphone_version"
|
android:id="@+id/about_liblinphone_sdk_version"
|
||||||
style="@style/font12"
|
style="@style/font12"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="@string/about_liblinphone_version" />
|
android:text="@string/about_liblinphone_sdk_version" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
<string name="tunnel_host"></string>
|
<string name="tunnel_host"></string>
|
||||||
<string name="about_version">Linphone Android %s</string>
|
<string name="about_version">Linphone Android %s</string>
|
||||||
<string name="about_liblinphone_version">Linphone Core %s</string>
|
<string name="about_liblinphone_version">Linphone Core %s</string>
|
||||||
|
<string name="about_liblinphone_sdk_version">Linphone SDK %s</string>
|
||||||
<string name="about_link">www.linphone.org</string>
|
<string name="about_link">www.linphone.org</string>
|
||||||
<string name="sync_account_name">linphone contacts</string>
|
<string name="sync_account_name">linphone contacts</string>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue