1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Whitespace fixes

This commit is contained in:
cketti 2014-09-04 22:35:03 +02:00
parent cb67a21a93
commit bd9efa8d01

View File

@ -425,10 +425,9 @@ public class LocalStore extends Store implements Serializable {
throw e; throw e;
} }
} }
Cursor cursor = null; Cursor cursor = null;
try { try {
SharedPreferences prefs = getPreferences(); SharedPreferences prefs = getPreferences();
cursor = db.rawQuery("SELECT id, name FROM folders", null); cursor = db.rawQuery("SELECT id, name FROM folders", null);
while (cursor.moveToNext()) { while (cursor.moveToNext()) {
@ -440,12 +439,8 @@ public class LocalStore extends Store implements Serializable {
Log.e(K9.LOG_TAG, " error trying to ugpgrade a folder class", e); Log.e(K9.LOG_TAG, " error trying to ugpgrade a folder class", e);
} }
} }
} } catch (SQLiteException e) {
catch (SQLiteException e) {
Log.e(K9.LOG_TAG, "Exception while upgrading database to v41. folder classes may have vanished", e); Log.e(K9.LOG_TAG, "Exception while upgrading database to v41. folder classes may have vanished", e);
} finally { } finally {
Utility.closeQuietly(cursor); Utility.closeQuietly(cursor);
} }
@ -712,10 +707,9 @@ public class LocalStore extends Store implements Serializable {
throw e; throw e;
} }
} }
Cursor cursor = null; Cursor cursor = null;
try { try {
SharedPreferences prefs = getPreferences(); SharedPreferences prefs = getPreferences();
cursor = db.rawQuery("SELECT id, name FROM folders", null); cursor = db.rawQuery("SELECT id, name FROM folders", null);
while (cursor.moveToNext()) { while (cursor.moveToNext()) {
@ -727,12 +721,8 @@ public class LocalStore extends Store implements Serializable {
Log.e(K9.LOG_TAG, " error trying to ugpgrade a folder notify class", e); Log.e(K9.LOG_TAG, " error trying to ugpgrade a folder notify class", e);
} }
} }
} } catch (SQLiteException e) {
catch (SQLiteException e) {
Log.e(K9.LOG_TAG, "Exception while upgrading database to v50. folder classes may have vanished", e); Log.e(K9.LOG_TAG, "Exception while upgrading database to v50. folder classes may have vanished", e);
} finally { } finally {
Utility.closeQuietly(cursor); Utility.closeQuietly(cursor);
} }
@ -1741,6 +1731,7 @@ public class LocalStore extends Store implements Serializable {
public String getPushState() { public String getPushState() {
return mPushState; return mPushState;
} }
@Override @Override
public FolderClass getDisplayClass() { public FolderClass getDisplayClass() {
return mDisplayClass; return mDisplayClass;
@ -1783,10 +1774,12 @@ public class LocalStore extends Store implements Serializable {
mSyncClass = syncClass; mSyncClass = syncClass;
updateFolderColumn("poll_class", mSyncClass.name()); updateFolderColumn("poll_class", mSyncClass.name());
} }
public void setPushClass(FolderClass pushClass) throws MessagingException { public void setPushClass(FolderClass pushClass) throws MessagingException {
mPushClass = pushClass; mPushClass = pushClass;
updateFolderColumn("push_class", mPushClass.name()); updateFolderColumn("push_class", mPushClass.name());
} }
public void setNotifyClass(FolderClass notifyClass) throws MessagingException { public void setNotifyClass(FolderClass notifyClass) throws MessagingException {
mNotifyClass = notifyClass; mNotifyClass = notifyClass;
updateFolderColumn("notify_class", mNotifyClass.name()); updateFolderColumn("notify_class", mNotifyClass.name());
@ -1795,6 +1788,7 @@ public class LocalStore extends Store implements Serializable {
public boolean isIntegrate() { public boolean isIntegrate() {
return mIntegrate; return mIntegrate;
} }
public void setIntegrate(boolean integrate) throws MessagingException { public void setIntegrate(boolean integrate) throws MessagingException {
mIntegrate = integrate; mIntegrate = integrate;
updateFolderColumn("integrate", mIntegrate ? 1 : 0); updateFolderColumn("integrate", mIntegrate ? 1 : 0);