forked from penguin86/luna-tracker
global: rename StatisticsActivity to LongTermStatisticsActivity
Make way for a future ShortTermStatisticsActivity.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
android:label="@string/settings_title"
|
||||
android:theme="@style/Theme.LunaTracker"/>
|
||||
<activity
|
||||
android:name=".StatisticsActivity"
|
||||
android:name=".LongTermStatisticsActivity"
|
||||
android:label="@string/statistics_title"
|
||||
android:theme="@style/Theme.LunaTracker"/>
|
||||
</application>
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.Locale
|
||||
import kotlin.math.max
|
||||
import kotlin.math.min
|
||||
|
||||
class StatisticsActivity : AppCompatActivity() {
|
||||
class LongTermStatisticsActivity : AppCompatActivity() {
|
||||
var lastToastShown = 0L
|
||||
|
||||
lateinit var barChart: BarChart
|
||||
@@ -767,7 +767,7 @@ class StatisticsActivity : AppCompatActivity() {
|
||||
override fun onItemSelected(parent: AdapterView<*>?, view: View?, pos: Int, id: Long) {
|
||||
if (pos >= arrayValues.size) {
|
||||
Toast.makeText(
|
||||
this@StatisticsActivity,
|
||||
this@LongTermStatisticsActivity,
|
||||
"pos out of bounds: $arrayValues", Toast.LENGTH_SHORT
|
||||
).show()
|
||||
return
|
||||
@@ -784,7 +784,7 @@ class StatisticsActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val TAG = "StatisticsActivity"
|
||||
const val TAG = "LongTermStatisticsActivity"
|
||||
|
||||
// 15 min steps
|
||||
const val SLEEP_PATTERN_GRANULARITY = 15 * 60
|
||||
@@ -1359,7 +1359,7 @@ class MainActivity : AppCompatActivity() {
|
||||
// Add statistics (hard coded)
|
||||
contentView.findViewById<View>(R.id.button_statistics).setOnClickListener {
|
||||
if (logbook != null && !pauseLogbookUpdate) {
|
||||
val i = Intent(applicationContext, StatisticsActivity::class.java)
|
||||
val i = Intent(applicationContext, LongTermStatisticsActivity::class.java)
|
||||
i.putExtra("LOOGBOOK_NAME", logbook!!.name)
|
||||
startActivity(i)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user