Skip to content

Commit

Permalink
About: Inform that the database gets update once a month
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto97 committed Aug 5, 2021
1 parent 597b51a commit 7eb55f1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/src/main/java/org/alberto97/ouilookup/ui/about/AboutScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.outlined.Info
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.navigation.NavController
Expand Down Expand Up @@ -62,6 +64,18 @@ fun AboutScreen(
text = { Text(stringResource(R.string.about_last_db_update)) },
secondaryText = { Text(lastDbUpdate) },
)
Divider(color = Color.LightGray)
ListItem(
icon = {
Icon(
imageVector = Icons.Outlined.Info,
contentDescription = null,
tint = Color.LightGray
)
},
text = {},
secondaryText = { Text(stringResource(R.string.about_db_updates_description))}
)
}
}
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
<string name="about_author">Author</string>
<string name="about_version">Version</string>
<string name="about_last_db_update">Last database update</string>
<string name="about_db_updates_description">The database gets updated once a month to ensure the data is always relevant</string>
</resources>

0 comments on commit 7eb55f1

Please sign in to comment.