- Added GitHub link to About text.
- HTML formatted About text.
This commit is contained in:
@ -2,9 +2,11 @@ package com.tutpro.baresip
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.graphics.Color
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.support.v7.app.AppCompatActivity
|
||||
import android.text.Html
|
||||
import android.text.method.LinkMovementMethod
|
||||
import android.view.MenuItem
|
||||
import android.widget.TextView
|
||||
|
||||
@ -13,9 +15,13 @@ class AboutActivity : AppCompatActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_about)
|
||||
val aboutText = findViewById(R.id.aboutText) as TextView
|
||||
aboutText.text = String.format(getString(R.string.about_text), BuildConfig.VERSION_NAME)
|
||||
aboutText.setTextColor(Color.BLACK)
|
||||
val aboutText = findViewById<TextView>(R.id.aboutText)
|
||||
val text = String.format(getString(R.string.about_text), BuildConfig.VERSION_NAME)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||
aboutText.text = Html.fromHtml(text, Html.FROM_HTML_MODE_LEGACY)
|
||||
else
|
||||
aboutText.text = Html.fromHtml(text)
|
||||
aboutText.setMovementMethod(LinkMovementMethod.getInstance())
|
||||
}
|
||||
|
||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context=".AboutActivity">
|
||||
tools:context=".AboutActivity" >
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="fill_parent"
|
||||
|
||||
@ -3,21 +3,30 @@
|
||||
|
||||
<!-- About Activity -->
|
||||
<string name="about_title">baresip sovelluksesta</string>
|
||||
<string name="about_text"><b>Baresip-kirjastoon perustuva SIP-asiakassovellus</b>\n\n
|
||||
Juha Heinanen jh@tutpro.com\n\n
|
||||
Versio %1$s\n\n
|
||||
<b>Käyttövihjeitä</b>\n\n
|
||||
• Tarkista, että konfiguraation oletusarvot vastaavat tarpeitasi.
|
||||
Kunkin otsikon painallus tarjoaa apua.\n
|
||||
• Sen jälkeen luo yksi tai useampi tili. Jälleen kunkin otsikon painallus tarjoaa apua.\n
|
||||
• Voit lisätä puheluiden ja viestien kohteet kontakteihin pitkällä painalluksella.\n
|
||||
• Pitkillä painalluksilla voi myös poistaa puheluita, viestiketjuja,
|
||||
viestejä ja kontakteja.\n
|
||||
• Voit soittaa edellisen puhelun uudelleen painamalla virheää luuria silloin,
|
||||
kun puhelun kohde on tyhjä.\n
|
||||
• Jos et puhelun aikana kuule, mitä toinen sanoo, yritä kasvattaa median volyymia.\n
|
||||
• Kaiun poisto ei ole tällä hetkellä tuettu, jos puhelu on Opus-koodattu.\n
|
||||
<string name="about_text">
|
||||
<![CDATA[
|
||||
<h1>Baresip-kirjastoon perustuva SIP-asiakassovellus</h1>
|
||||
<p>Juha Heinanen <jh@tutpro.com></p>
|
||||
<p>Versio %1$s</p>
|
||||
<h2>Käyttövihjeitä</h2>
|
||||
<ul>
|
||||
<li>Tarkista, että konfiguraation oletusarvot vastaavat tarpeitasi.
|
||||
Kunkin otsikon painallus tarjoaa apua.</li>
|
||||
<li>Sen jälkeen luo yksi tai useampi tili. Jälleen kunkin otsikon painallus tarjoaa apua.</li>
|
||||
<li>Voit lisätä puheluiden ja viestien kohteet kontakteihin pitkällä painalluksella.</li>
|
||||
<li>Pitkillä painalluksilla voi myös poistaa puheluita, viestiketjuja,
|
||||
viestejä ja kontakteja.</li>
|
||||
<li>Voit soittaa edellisen puhelun uudelleen painamalla virheää luuria silloin,
|
||||
kun puhelun kohde on tyhjä.</li>
|
||||
<li>Jos et puhelun aikana kuule, mitä toinen sanoo, yritä kasvattaa median volyymia.</li>
|
||||
<li>Kaiun poisto ei ole tällä hetkellä tuettu, jos puhelu on Opus-koodattu.</li>
|
||||
</ul>
|
||||
<h2>Lähdekoodi</h2>
|
||||
Lähdekoodi on saatavilla <a href="https://github.com/juha-h/baresip-studio">GitHub</a>:ssa,
|
||||
missä voi myös raportoida virheistä.
|
||||
]]>
|
||||
</string>
|
||||
<string name="baresip_link"><a href="https://github.com/juha-h/baresip-studio">GitHub</a></string>
|
||||
|
||||
<!-- Account Activity -->
|
||||
<string name="account">Tili</string>
|
||||
|
||||
@ -6,18 +6,26 @@
|
||||
<!-- About Activity -->
|
||||
<string name="about_title">About baresip</string>
|
||||
<string name="about_text">
|
||||
<b>Baresip library based SIP User Agent</b>\n\n
|
||||
Juha Heinanen jh@tutpro.com\n\n
|
||||
Version %1$s\n\n
|
||||
<b>Usage Hints</b>\n\n
|
||||
• Check that configuration default values meet your needs (click item titles for help).\n
|
||||
• Then create one or more accounts (again click item titles for help).\n
|
||||
• Peers of calls and messages can be added to contacts by long clicks.\n
|
||||
• Long clicks can also be used to remove calls, chats, messages, and contacts.\n
|
||||
• Call click when callee has not been given can be used for re-dial.\n
|
||||
• If you cannot hear the other party of a call, try to increase Media volume.\n
|
||||
• Audio echo cancellation is currently not supported when call uses Opus codec.\n
|
||||
<![CDATA[
|
||||
<h1>Baresip library based SIP User Agent</h1>
|
||||
<p>Juha Heinanen <jh@tutpro.com></p>
|
||||
<p>Version %1$s</p>
|
||||
<h2>Usage Hints</h2>
|
||||
<ul>
|
||||
<li>Check that configuration default values meet your needs (click item titles for help).</li>
|
||||
<li>Then create one or more accounts (again click item titles for help).</li>
|
||||
<li>Peers of calls and messages can be added to contacts by long clicks.</li>
|
||||
<li>Long clicks can also be used to remove calls, chats, messages, and contacts.</li>
|
||||
<li>Call click when callee has not been given can be used for re-dial.</li>
|
||||
<li>If you cannot hear the other party of a call, try to increase Media volume.</li>
|
||||
<li>Audio echo cancellation is currently not supported when call uses Opus codec.</li>
|
||||
</ul>
|
||||
<h2>Source code</h2>
|
||||
Source code is available at <a href="https://github.com/juha-h/baresip-studio">GitHub</a>,
|
||||
where also issues can be reported.
|
||||
]]>
|
||||
</string>
|
||||
<string name="baresip_link"><a href="https://github.com/juha-h/baresip-studio">GitHub</a></string>
|
||||
|
||||
<!-- Account Activity -->
|
||||
<string name="account">Account</string>
|
||||
|
||||
Reference in New Issue
Block a user