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

Update spotless #3822

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public class EncryptDecryptUtils {

public static final String DECRYPT_BROADCAST = "decrypt_broadcast";
private static final Logger LOG = LoggerFactory.getLogger(EncryptDecryptUtils.class);

/**
* Queries database to map path and password. Starts the encryption process after database query
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ class SftpConnectDialog : DialogFragment() {
}
}

private fun handleOnPositiveButton(edit: Boolean):
MaterialDialog.SingleButtonCallback =
private fun handleOnPositiveButton(edit: Boolean): MaterialDialog.SingleButtonCallback =
MaterialDialog.SingleButtonCallback { _, _ ->
createConnectionSettings(edit).run {
when (prefix) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ public class ProgressHandler {
* (see Java Language Specification 17.7)
*/
private volatile long writtenSize = 0L;

/** total number of source files to be processed */
private volatile int sourceFiles = 0;

/** number of source files processed so far */
private volatile int sourceFilesProcessed = 0;

/** file name currently being processed */
private volatile String fileName;

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/com/amaze/filemanager/utils/TinyDB.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import android.text.TextUtils
*/
object TinyDB {
/*
* The "‚" character is not a comma, it is the SINGLE LOW-9 QUOTATION MARK. U-201A
* + U-2017 + U-201A are used for separating the items in a list.
*/
* The "‚" character is not a comma, it is the SINGLE LOW-9 QUOTATION MARK. U-201A
* + U-2017 + U-201A are used for separating the items in a list.
*/
private const val DIVIDER = "‚‗‚"

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class RarExtractor(
/* junrar doesn't throw exceptions if wrong archive password is supplied, until extracted file
CRC is compared against the one stored in archive. So we can only rely on verifying CRC
during extracting
*/
*/
val inputStream = BufferedInputStream(rarFile.getInputStream(entry))
val outputStream = CheckedOutputStream(
BufferedOutputStream(FileUtil.getOutputStream(outputFile, context)),
Expand Down
10 changes: 5 additions & 5 deletions app/src/play/java/com/amaze/filemanager/utils/Billing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,11 @@ class Billing(private val activity: BasicActivity) :

private fun showPaymentsDialog(context: BasicActivity) {
/*
* As of Billing library 4.0, all callbacks are running on background thread.
* Need to use AppConfig.runInApplicationThread() for UI interactions
*
*
*/
* As of Billing library 4.0, all callbacks are running on background thread.
* Need to use AppConfig.runInApplicationThread() for UI interactions
*
*
*/
AppConfig.getInstance()
.runInApplicationThread(
Callable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/** Base Codec class. */
abstract class CoderBase {
private final Class<?>[] acceptableOptions;

/**
* @param acceptableOptions types that can be used as options for this codec.
*/
Expand Down