In Settings, added link to Android settings

This commit is contained in:
Juha Heinanen
2022-01-04 18:05:07 +02:00
parent bf448b23fd
commit dc8a9cf751
5 changed files with 37 additions and 12 deletions

View File

@ -100,7 +100,7 @@
<activity
android:name=".AudioActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/audio"
android:label="@string/audio_settings"
android:parentActivityName=".ConfigActivity" >
</activity>
<activity

View File

@ -8,8 +8,10 @@ import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
import android.os.PowerManager
import android.provider.Settings
import android.view.Menu
import android.view.MenuItem
import android.view.View
@ -501,9 +503,16 @@ class ConfigActivity : AppCompatActivity() {
Utils.alertView(this, getString(R.string.tls_ca_file),
getString(R.string.tls_ca_file_help))
}
binding.AudioTitle .setOnClickListener {
binding.AudioSettingsTitle .setOnClickListener {
startActivity(Intent(this, AudioActivity::class.java))
}
binding.AndroidSettings.setOnClickListener {
val i = Intent()
i.action = Settings.ACTION_APPLICATION_DETAILS_SETTINGS
i.data = Uri.parse("package:${applicationContext.packageName}")
i.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY)
startActivity(i)
}
binding.DarkThemeTitle.setOnClickListener {
Utils.alertView(this, getString(R.string.dark_theme),
getString(R.string.dark_theme_help))

View File

@ -80,6 +80,7 @@
android:id="@+id/ListenAddress"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="-10dp"
android:layout_marginBottom="12dp"
android:textSize="18sp"
android:hint="@string/_0_0_0_0_5060"
@ -99,6 +100,7 @@
android:id="@+id/DnsServers"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="-10dp"
android:layout_marginBottom="12dp"
android:textSize="18sp"
android:inputType="textUri"
@ -183,16 +185,6 @@
</CheckBox>
</RelativeLayout>
<TextView
android:id="@+id/AudioTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:textSize="18sp"
android:textStyle="bold"
android:text="@string/audio" >
</TextView>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -219,6 +211,26 @@
</CheckBox>
</RelativeLayout>
<TextView
android:id="@+id/AudioSettingsTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:textSize="18sp"
android:textStyle="bold"
android:text="@string/audio_settings" >
</TextView>
<TextView
android:id="@+id/AndroidSettings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:text="@string/android_settings"
android:textStyle="bold"
android:textSize="18sp">
</TextView>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@ -323,6 +323,7 @@
Download-kansiosta.
</string>
<string name="audio">Audio</string>
<string name="audio_settings">Audio-asetukset</string>
<string name="audio_modules_title">Audio-modulit</string>
<string name="audio_modules_help">Merkittyjen modulien tarjoamat audio-koodekit ovat tilien
käytettävissä.
@ -354,6 +355,7 @@
<string name="video_size">Videon kehyskoko</string>
<string name="video_size_help">Lähetettävän videon kehyskoko (leveys x korkeus).
Tehdasasetus on 800x600.</string>
<string name="android_settings">Android-asetukset</string>
<string name="debug">Lokiviestit</string>
<string name="debug_help">Jos merkitty, baresip tuottaa debug- ja info-tason Logcat-viestejä.</string>
<string name="sip_trace">SIP-sanomien jäljitys</string>

View File

@ -290,6 +290,7 @@
of needed Certificate Authorities has been or will be loaded. In Android versions 9 and
below, a file called \'ca_certs.crt\' is loaded from Download folder.</string>
<string name="audio">Audio</string>
<string name="audio_settings">Audio Settings</string>
<string name="audio_modules_title">Audio Modules</string>
<string name="audio_modules_help">Audio codecs provided by the checked modules are
available for use by the accounts.</string>
@ -315,6 +316,7 @@
<string name="video_size">Video Frame Size</string>
<string name="video_size_help">Size of transmitted video frames (width x height).
Factory default is 800x600.</string>
<string name="android_settings">Android Settings</string>
<string name="debug">Debug</string>
<string name="debug_help">If checked, provides debug and info level log messages to Logcat.</string>
<string name="sip_trace">SIP Trace</string>