Skip to content

Commit a55c9a9

Browse files
committed
refactor: replace settings string for sharing logs, change extension to .txt to make things easier
1 parent 3997fce commit a55c9a9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ dependencies {
154154
testImplementation 'org.robolectric:shadows-multidex:4.4'
155155
}
156156

157-
def canonicalVersionCode = 227
157+
def canonicalVersionCode = 228
158158
def canonicalVersionName = "1.11.11"
159159

160160
def postFixSize = 10

app/src/main/java/org/thoughtcrime/securesms/preferences/SettingsActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() {
8585
helpTranslateButton.setOnClickListener { helpTranslate() }
8686
seedButton.setOnClickListener { showSeed() }
8787
clearAllDataButton.setOnClickListener { clearAllData() }
88-
supportButton.setOnClickListener { shareLogs() }
88+
debugLogButton.setOnClickListener { shareLogs() }
8989
val isLightMode = UiModeUtilities.isDayUiMode(this)
9090
oxenLogoImageView.setImageResource(if (isLightMode) R.drawable.oxen_light_mode else R.drawable.oxen_dark_mode)
9191
versionTextView.text = String.format(getString(R.string.version_s), "${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE})")

app/src/main/java/org/thoughtcrime/securesms/preferences/ShareLogsDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ShareLogsDialog : BaseDialog() {
4040
val persistentLogger = ApplicationContext.getInstance(context).persistentLogger
4141
try {
4242
val logs = persistentLogger.logs.get()
43-
val fileName = "${Build.MANUFACTURER}-${Build.DEVICE}-API${Build.VERSION.SDK_INT}-v${BuildConfig.VERSION_NAME}.log"
43+
val fileName = "${Build.MANUFACTURER}-${Build.DEVICE}-API${Build.VERSION.SDK_INT}-v${BuildConfig.VERSION_NAME}.txt"
4444
val logUri = BlobProvider().forData(logs.toByteArray())
4545
.withFileName(fileName)
4646
.withMimeType("text/plain")

app/src/main/res/layout/activity_settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229

230230
<TextView
231231
android:padding="@dimen/small_spacing"
232-
android:id="@+id/supportButton"
232+
android:id="@+id/debugLogButton"
233233
android:layout_width="match_parent"
234234
android:layout_height="wrap_content"
235235
android:layout_marginTop="@dimen/medium_spacing"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@
899899
<string name="delete_message_for_everyone">Delete for everyone</string>
900900
<string name="delete_message_for_me_and_recipient">Delete for me and %s</string>
901901
<string name="activity_settings_survey_feedback">Feedback/Survey</string>
902-
<string name="activity_settings_support">Support</string>
902+
<string name="activity_settings_support">Debug Log</string>
903903
<string name="dialog_share_logs_title">Share Logs</string>
904904
<string name="dialog_share_logs_explanation">Would you like to export your application logs to be able to share for troubleshooting?</string>
905905

0 commit comments

Comments
 (0)