Skip to content

Commit

Permalink
Apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalNehra committed Jul 14, 2024
1 parent a143c3c commit ad783c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import com.amaze.fileutilities.utilis.EmptyViewHolder
import com.amaze.fileutilities.utilis.FileUtils
import com.amaze.fileutilities.utilis.Utils
import java.lang.ref.WeakReference
import java.util.concurrent.TimeUnit

class ReviewAnalysisAdapter(
val context: Context,
Expand Down Expand Up @@ -102,10 +101,15 @@ class ReviewAnalysisAdapter(
holder.infoSummary.text = totalSize
}
} else if (analysisType == ReviewImagesFragment.TYPE_MOST_USED_APPS) {
val timeForeground = Utils.convertMillisToHoursMinutes(this.mediaFileInfo?.extraInfo?.apkMetaData?.timeForeground ?: 0L)
val size = this.mediaFileInfo?.getFormattedSize(context)
val timeForeground =
Utils.convertMillisToHoursMinutes(
this.mediaFileInfo?.extraInfo
?.apkMetaData?.timeForeground ?: 0L
)
val size = this.mediaFileInfo?.getFormattedSize(context)
holder.infoSummary.text = "${context.getString(R.string.size)}: $size"
holder.extraInfo.text = "${context.getString(R.string.usage)}: $timeForeground"
holder.extraInfo.text = "${context.getString(R.string.usage)}: " +
"$timeForeground"
} else {
holder.infoSummary.text = this.mediaFileInfo?.getFormattedSize(context)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ class FilesViewModel(val applicationContext: Application) :
usageStats.filter {
it.lastTimeUsed != 0L
}.forEach {
var timeForeground = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
var timeForeground = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
it.totalTimeVisible else it.totalTimeInForeground
if (freqMap[it.packageName] != null) {
timeForeground += freqMap[it.packageName]!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ import com.amaze.fileutilities.R
import com.amaze.fileutilities.databinding.GenericPagerViewerActivityBinding
import com.amaze.fileutilities.utilis.Utils.Companion.showProcessingDialog
import com.amaze.fileutilities.utilis.showToastInCenter
import java.io.File
import org.slf4j.Logger
import org.slf4j.LoggerFactory

import java.io.File

class ImageViewerActivity : PermissionsActivity() {

Expand Down

0 comments on commit ad783c0

Please sign in to comment.