Skip to content

Commit

Permalink
Merge pull request #101 from aashishksahu/bug-fix
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
aashishksahu authored Oct 28, 2024
2 parents fa39916 + 6630c5c commit 0af6133
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ android {

minSdk 29
targetSdk 34
versionCode 37
versionName "2.0.6"
versionCode 38
versionName "2.0.7"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
29 changes: 15 additions & 14 deletions app/src/main/java/org/privacymatters/safespace/main/ui/ItemList.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ItemList(private val activity: MainnActivity) {
Row(
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier
.padding(top = 5.dp)
// .padding(10.dp)
.combinedClickable(
onClick = {
openItem(item)
Expand All @@ -114,9 +114,9 @@ class ItemList(private val activity: MainnActivity) {
) {
GlideImage(
modifier = Modifier
.size(64.dp)
.size(84.dp)
.padding(10.dp)
.clip(RoundedCornerShape(8.dp))
.clip(RoundedCornerShape(12.dp))
.background(MaterialTheme.colorScheme.primary),
model = File(activity.viewModel.getIconPath(item.name)).canonicalPath,
contentDescription = activity.getString(R.string.file_icon_description),
Expand All @@ -126,14 +126,14 @@ class ItemList(private val activity: MainnActivity) {
)
Column(
modifier = Modifier
.padding(10.dp)
.padding(end=10.dp, top = 10.dp, bottom = 10.dp)
) {
val (name, ext) = Utils.getFileNameAndExtension(item.name)

Text(
text = name,
style = MaterialTheme.typography.titleMedium,
maxLines = 2,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
color = if (item.isSelected) MaterialTheme.colorScheme.onSecondary else MaterialTheme.colorScheme.onBackground
)
Expand All @@ -143,6 +143,10 @@ class ItemList(private val activity: MainnActivity) {
.fillMaxWidth()
.padding(top = 10.dp)
) {
Text(
text = Utils.convertLongToDate(item.lastModified),
color = if (item.isSelected) MaterialTheme.colorScheme.onSecondary else MaterialTheme.colorScheme.onBackground,
)
Row(verticalAlignment = Alignment.CenterVertically) {
Text(
text = Utils.getSize(item.size),
Expand All @@ -163,10 +167,6 @@ class ItemList(private val activity: MainnActivity) {
fontWeight = FontWeight.Bold
)
}
Text(
text = Utils.convertLongToDate(item.lastModified),
color = if (item.isSelected) MaterialTheme.colorScheme.onSecondary else MaterialTheme.colorScheme.onBackground,
)
}
}
}
Expand All @@ -179,7 +179,7 @@ class ItemList(private val activity: MainnActivity) {
Row(
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier
.padding(top = 5.dp)
// .padding(10.dp)
.combinedClickable(
onClick = {
openItem(item)
Expand All @@ -194,21 +194,22 @@ class ItemList(private val activity: MainnActivity) {
) {
Image(
modifier = Modifier
.size(64.dp)
.size(84.dp)
.padding(10.dp)
.clip(RoundedCornerShape(8.dp))
.clip(RoundedCornerShape(12.dp))
.clip(RoundedCornerShape(12.dp))
.background(MaterialTheme.colorScheme.primary),
painter = painterResource(R.drawable.folder_36dp),
contentDescription = activity.getString(R.string.file_folder_placeholder)
)
Column(
modifier = Modifier
.padding(10.dp)
.padding(end=10.dp, top = 10.dp, bottom = 10.dp)
) {
Text(
text = item.name,
style = MaterialTheme.typography.titleMedium,
maxLines = 2,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
color = if (item.isSelected) MaterialTheme.colorScheme.onSecondary else MaterialTheme.colorScheme.onBackground
)
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.6.0' apply false
id 'com.android.library' version '8.6.0' apply false
id 'com.android.application' version '8.7.1' apply false
id 'com.android.library' version '8.7.1' apply false
id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
}
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/38.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Minor UI changes and bug fixes
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Sat Apr 20 11:27:52 IST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 0af6133

Please sign in to comment.