mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
refactor: replace settings string for sharing logs, change extension to .txt to make things easier
This commit is contained in:
parent
3997fcebc2
commit
a55c9a969b
@ -154,7 +154,7 @@ dependencies {
|
|||||||
testImplementation 'org.robolectric:shadows-multidex:4.4'
|
testImplementation 'org.robolectric:shadows-multidex:4.4'
|
||||||
}
|
}
|
||||||
|
|
||||||
def canonicalVersionCode = 227
|
def canonicalVersionCode = 228
|
||||||
def canonicalVersionName = "1.11.11"
|
def canonicalVersionName = "1.11.11"
|
||||||
|
|
||||||
def postFixSize = 10
|
def postFixSize = 10
|
||||||
|
@ -85,7 +85,7 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() {
|
|||||||
helpTranslateButton.setOnClickListener { helpTranslate() }
|
helpTranslateButton.setOnClickListener { helpTranslate() }
|
||||||
seedButton.setOnClickListener { showSeed() }
|
seedButton.setOnClickListener { showSeed() }
|
||||||
clearAllDataButton.setOnClickListener { clearAllData() }
|
clearAllDataButton.setOnClickListener { clearAllData() }
|
||||||
supportButton.setOnClickListener { shareLogs() }
|
debugLogButton.setOnClickListener { shareLogs() }
|
||||||
val isLightMode = UiModeUtilities.isDayUiMode(this)
|
val isLightMode = UiModeUtilities.isDayUiMode(this)
|
||||||
oxenLogoImageView.setImageResource(if (isLightMode) R.drawable.oxen_light_mode else R.drawable.oxen_dark_mode)
|
oxenLogoImageView.setImageResource(if (isLightMode) R.drawable.oxen_light_mode else R.drawable.oxen_dark_mode)
|
||||||
versionTextView.text = String.format(getString(R.string.version_s), "${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE})")
|
versionTextView.text = String.format(getString(R.string.version_s), "${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE})")
|
||||||
|
@ -40,7 +40,7 @@ class ShareLogsDialog : BaseDialog() {
|
|||||||
val persistentLogger = ApplicationContext.getInstance(context).persistentLogger
|
val persistentLogger = ApplicationContext.getInstance(context).persistentLogger
|
||||||
try {
|
try {
|
||||||
val logs = persistentLogger.logs.get()
|
val logs = persistentLogger.logs.get()
|
||||||
val fileName = "${Build.MANUFACTURER}-${Build.DEVICE}-API${Build.VERSION.SDK_INT}-v${BuildConfig.VERSION_NAME}.log"
|
val fileName = "${Build.MANUFACTURER}-${Build.DEVICE}-API${Build.VERSION.SDK_INT}-v${BuildConfig.VERSION_NAME}.txt"
|
||||||
val logUri = BlobProvider().forData(logs.toByteArray())
|
val logUri = BlobProvider().forData(logs.toByteArray())
|
||||||
.withFileName(fileName)
|
.withFileName(fileName)
|
||||||
.withMimeType("text/plain")
|
.withMimeType("text/plain")
|
||||||
|
@ -229,7 +229,7 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:padding="@dimen/small_spacing"
|
android:padding="@dimen/small_spacing"
|
||||||
android:id="@+id/supportButton"
|
android:id="@+id/debugLogButton"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/medium_spacing"
|
android:layout_marginTop="@dimen/medium_spacing"
|
||||||
|
@ -899,7 +899,7 @@
|
|||||||
<string name="delete_message_for_everyone">Delete for everyone</string>
|
<string name="delete_message_for_everyone">Delete for everyone</string>
|
||||||
<string name="delete_message_for_me_and_recipient">Delete for me and %s</string>
|
<string name="delete_message_for_me_and_recipient">Delete for me and %s</string>
|
||||||
<string name="activity_settings_survey_feedback">Feedback/Survey</string>
|
<string name="activity_settings_survey_feedback">Feedback/Survey</string>
|
||||||
<string name="activity_settings_support">Support</string>
|
<string name="activity_settings_support">Debug Log</string>
|
||||||
<string name="dialog_share_logs_title">Share Logs</string>
|
<string name="dialog_share_logs_title">Share Logs</string>
|
||||||
<string name="dialog_share_logs_explanation">Would you like to export your application logs to be able to share for troubleshooting?</string>
|
<string name="dialog_share_logs_explanation">Would you like to export your application logs to be able to share for troubleshooting?</string>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user