mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Use one line for each declaration, it enhances code readability (codacy)
This commit is contained in:
parent
2f6793f878
commit
e29ca8091d
3 changed files with 8 additions and 3 deletions
|
@ -208,7 +208,10 @@ public class AccountUtils {
|
|||
if (currentAccountVersion == null) {
|
||||
Log_OC.i(TAG, "Upgrading accounts to account version #" + ACCOUNT_VERSION);
|
||||
Account[] ocAccounts = accountMgr.getAccountsByType(MainApp.getAccountType());
|
||||
String serverUrl, username, newAccountName, password;
|
||||
String serverUrl;
|
||||
String username;
|
||||
String newAccountName;
|
||||
String password;
|
||||
Account newAccount;
|
||||
for (Account account : ocAccounts) {
|
||||
// build new account name
|
||||
|
|
|
@ -115,7 +115,8 @@ public class IndexedForest<V> {
|
|||
String currentPath = remotePath;
|
||||
String parentPath = null;
|
||||
String parentKey = null;
|
||||
Node<V> currentNode = valuedNode, parentNode = null;
|
||||
Node<V> currentNode = valuedNode;
|
||||
Node<V> parentNode = null;
|
||||
boolean linked = false;
|
||||
while (!OCFile.ROOT_PATH.equals(currentPath) && !linked) {
|
||||
parentPath = new File(currentPath).getParent();
|
||||
|
|
|
@ -136,7 +136,8 @@ public class CustomPopup {
|
|||
LayoutParams.WRAP_CONTENT));
|
||||
root.measure(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
|
||||
|
||||
int rootW = root.getWidth(), rootH = root.getHeight();
|
||||
int rootW = root.getWidth();
|
||||
int rootH = root.getHeight();
|
||||
int screenW = mWManager.getDefaultDisplay().getWidth();
|
||||
|
||||
int xpos = ((screenW - rootW) / 2) + x;
|
||||
|
|
Loading…
Reference in a new issue