Browse Source

Merge pull request #84 from yusufsahinhamza/improve-c-help

Improve help dialog
duke
Duke Leto 4 years ago
committed by GitHub
parent
commit
4a6820c1e6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. BIN
      SDA.jpg
  2. 4
      app/src/main/java/org/myhush/silentdragon/MainActivity.kt
  3. 2
      app/src/main/res/values-tr/strings.xml
  4. 2
      app/src/main/res/values/strings.xml

BIN
SDA.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 100 KiB

4
app/src/main/java/org/myhush/silentdragon/MainActivity.kt

@ -12,7 +12,9 @@ import android.os.Handler
import android.os.StrictMode
import android.support.constraint.ConstraintLayout
import android.support.design.widget.Snackbar
import android.support.v4.text.HtmlCompat
import android.support.v7.app.AppCompatActivity
import android.text.Html
import android.util.Log
import android.view.Menu
import android.view.MenuItem
@ -68,7 +70,7 @@ class MainActivity : AppCompatActivity(),
btnHelp.setOnClickListener {
val dialogBuilder = AlertDialog.Builder(this)
dialogBuilder.setMessage(resources.getString(R.string.help_text))
dialogBuilder.setMessage(Html.fromHtml(resources.getString(R.string.help_text), HtmlCompat.FROM_HTML_MODE_LEGACY))
.setNegativeButton(resources.getString(R.string.ok), DialogInterface.OnClickListener {
dialog, id -> dialog.cancel()
})

2
app/src/main/res/values-tr/strings.xml

@ -22,7 +22,7 @@
<string name="or">VEYA</string>
<string name="reconnect">Yeniden bağlan</string>
<string name="help">Yardım</string>
<string name="help_text">Bu uygulama tam düğümünüz için uzaktan kontrol yapar.\n\nAndroid telefonunuzun düğümünüze bağlanabilmesi için SilentDragon masaüstünü çalıştırmanız ve tamamen senkronize etmeniz gerekir.\n\nDüğümünüz senkronize edildikten sonra, Uygulamalar -> Mobil uygulamayı bağla\'ya giderek QR kodunu taratıp SilentDragon\'a bağlanabilirsiniz.</string>
<string name="help_text">Bu uygulama tam düğümünüz için uzaktan kontrol yapar.&lt;br>&lt;br>Android telefonunuzun düğümünüze bağlanabilmesi için SilentDragon masaüstünü çalıştırmanız ve tamamen senkronize etmeniz gerekir.&lt;br>&lt;br>Düğümünüz senkronize edildikten sonra, &lt;b>Uygulamalar -> Mobil uygulamayı bağla&lt;/b>\'ya giderek QR kodunu taratıp SilentDragon\'a bağlanabilirsiniz.</string>
<!-- MainActivity.kt -->
<string name="app_name">SilentDragon</string>

2
app/src/main/res/values/strings.xml

@ -27,7 +27,7 @@
<string name="or">OR</string>
<string name="reconnect">Reconnect</string>
<string name="help">Help</string>
<string name="help_text">This application does remote control for your full node.\n\nIn order to let your Android phone connect to your desktop, you need to run the deskop SilentDragon and sync fully.\n\nAfter your node is synced, go to Apps -> Connect Mobile App to view the connection QR Code, which you can scan from this app for connect SilentDragon.</string>
<string name="help_text">This application does remote control for your full node.&lt;br>&lt;br>In order to let your Android phone connect to your desktop, you need to run the deskop SilentDragon and sync fully.&lt;br>&lt;br>After your node is synced, go to &lt;b>Apps -> Connect Mobile App&lt;/b> to view the connection QR Code, which you can scan from this app for connect SilentDragon.</string>
<!-- MainActivity.kt -->
<string name="app_name">SilentDragon</string>

Loading…
Cancel
Save