mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
remove a duplicate codepath for folder insert
This commit is contained in:
parent
d59600653c
commit
65e89afc40
@ -1471,24 +1471,7 @@ public class LocalStore extends Store implements Serializable
|
||||
@Override
|
||||
public boolean create(FolderType type) throws MessagingException
|
||||
{
|
||||
if (exists())
|
||||
{
|
||||
throw new MessagingException("Folder " + mName + " already exists.");
|
||||
}
|
||||
database.execute(false, new DbCallback<Void>()
|
||||
{
|
||||
@Override
|
||||
public Void doDbWork(final SQLiteDatabase db) throws WrappedException
|
||||
{
|
||||
db.execSQL("INSERT INTO folders (name, visible_limit) VALUES (?, ?)", new Object[]
|
||||
{
|
||||
mName,
|
||||
mAccount.getDisplayCount()
|
||||
});
|
||||
return null;
|
||||
}
|
||||
});
|
||||
return true;
|
||||
return create(type, mAccount.getDisplayCount());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user