Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dashboard: better strings (fixes #3683) #3684

Merged
merged 18 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.ole.planet.myplanet.ui.dashboard

import android.annotation.SuppressLint
import android.app.AlertDialog
import android.content.Context
import android.content.Intent
Expand Down Expand Up @@ -80,6 +81,7 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N
super.attachBaseContext(LocaleHelper.onAttach(base))
}

@SuppressLint("SetTextI18n")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

android studio give a suggestion on a better way to handle this instead of suppressing String literal in setText can not be translated. Use Android resources instead

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
checkUser()
Expand Down Expand Up @@ -440,4 +442,4 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N
companion object {
const val MESSAGE_PROGRESS = "message_progress"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.ole.planet.myplanet.ui.dashboard

import android.annotation.SuppressLint
import android.app.AlertDialog
import android.content.Context
import android.content.Intent
Expand Down Expand Up @@ -80,6 +81,7 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N
super.attachBaseContext(LocaleHelper.onAttach(base))
}

@SuppressLint("SetTextI18n")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
checkUser()
Expand Down Expand Up @@ -440,4 +442,4 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N
companion object {
const val MESSAGE_PROGRESS = "message_progress"
}
}
}