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
+1 -1
View File
@@ -100,7 +100,7 @@
<activity <activity
android:name=".AudioActivity" android:name=".AudioActivity"
android:configChanges="orientation|keyboardHidden|screenSize" android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/audio" android:label="@string/audio_settings"
android:parentActivityName=".ConfigActivity" > android:parentActivityName=".ConfigActivity" >
</activity> </activity>
<activity <activity
@@ -8,8 +8,10 @@ import android.content.Intent
import android.os.Bundle import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatActivity
import android.content.pm.PackageManager import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build import android.os.Build
import android.os.PowerManager import android.os.PowerManager
import android.provider.Settings
import android.view.Menu import android.view.Menu
import android.view.MenuItem import android.view.MenuItem
import android.view.View import android.view.View
@@ -501,9 +503,16 @@ class ConfigActivity : AppCompatActivity() {
Utils.alertView(this, getString(R.string.tls_ca_file), Utils.alertView(this, getString(R.string.tls_ca_file),
getString(R.string.tls_ca_file_help)) getString(R.string.tls_ca_file_help))
} }
binding.AudioTitle .setOnClickListener { binding.AudioSettingsTitle .setOnClickListener {
startActivity(Intent(this, AudioActivity::class.java)) 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 { binding.DarkThemeTitle.setOnClickListener {
Utils.alertView(this, getString(R.string.dark_theme), Utils.alertView(this, getString(R.string.dark_theme),
getString(R.string.dark_theme_help)) getString(R.string.dark_theme_help))
+22 -10
View File
@@ -80,6 +80,7 @@
android:id="@+id/ListenAddress" android:id="@+id/ListenAddress"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="-10dp"
android:layout_marginBottom="12dp" android:layout_marginBottom="12dp"
android:textSize="18sp" android:textSize="18sp"
android:hint="@string/_0_0_0_0_5060" android:hint="@string/_0_0_0_0_5060"
@@ -99,6 +100,7 @@
android:id="@+id/DnsServers" android:id="@+id/DnsServers"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="-10dp"
android:layout_marginBottom="12dp" android:layout_marginBottom="12dp"
android:textSize="18sp" android:textSize="18sp"
android:inputType="textUri" android:inputType="textUri"
@@ -183,16 +185,6 @@
</CheckBox> </CheckBox>
</RelativeLayout> </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 <RelativeLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@@ -219,6 +211,26 @@
</CheckBox> </CheckBox>
</RelativeLayout> </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 <RelativeLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
+2
View File
@@ -323,6 +323,7 @@
Download-kansiosta. Download-kansiosta.
</string> </string>
<string name="audio">Audio</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_title">Audio-modulit</string>
<string name="audio_modules_help">Merkittyjen modulien tarjoamat audio-koodekit ovat tilien <string name="audio_modules_help">Merkittyjen modulien tarjoamat audio-koodekit ovat tilien
käytettävissä. käytettävissä.
@@ -354,6 +355,7 @@
<string name="video_size">Videon kehyskoko</string> <string name="video_size">Videon kehyskoko</string>
<string name="video_size_help">Lähetettävän videon kehyskoko (leveys x korkeus). <string name="video_size_help">Lähetettävän videon kehyskoko (leveys x korkeus).
Tehdasasetus on 800x600.</string> Tehdasasetus on 800x600.</string>
<string name="android_settings">Android-asetukset</string>
<string name="debug">Lokiviestit</string> <string name="debug">Lokiviestit</string>
<string name="debug_help">Jos merkitty, baresip tuottaa debug- ja info-tason Logcat-viestejä.</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> <string name="sip_trace">SIP-sanomien jäljitys</string>
+2
View File
@@ -290,6 +290,7 @@
of needed Certificate Authorities has been or will be loaded. In Android versions 9 and 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> below, a file called \'ca_certs.crt\' is loaded from Download folder.</string>
<string name="audio">Audio</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_title">Audio Modules</string>
<string name="audio_modules_help">Audio codecs provided by the checked modules are <string name="audio_modules_help">Audio codecs provided by the checked modules are
available for use by the accounts.</string> available for use by the accounts.</string>
@@ -315,6 +316,7 @@
<string name="video_size">Video Frame Size</string> <string name="video_size">Video Frame Size</string>
<string name="video_size_help">Size of transmitted video frames (width x height). <string name="video_size_help">Size of transmitted video frames (width x height).
Factory default is 800x600.</string> Factory default is 800x600.</string>
<string name="android_settings">Android Settings</string>
<string name="debug">Debug</string> <string name="debug">Debug</string>
<string name="debug_help">If checked, provides debug and info level log messages to Logcat.</string> <string name="debug_help">If checked, provides debug and info level log messages to Logcat.</string>
<string name="sip_trace">SIP Trace</string> <string name="sip_trace">SIP Trace</string>