package com.moac.android.opensecretsanta;

import android.app.Application;
import com.moac.android.opensecretsanta.database.OpenSecretSantaDB;

public class OpenSecretSantaApplication extends Application {

    private static OpenSecretSantaDB mDb = null;

    @Override
    public void onCreate() {
        super.onCreate();
        mDb = new OpenSecretSantaDB(this);
        mDb.open();
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
        mDb.close();
    }

    public static OpenSecretSantaDB getDatabase() {
        return mDb;
    }
}

@@ -393,111 +393,8 @@
  %7D%0A%0A
-    @Override%0A    public void onTerminate() %7B%0A        super.onTerminate();%0A        mDb.close();%0A    %7D%0A%0A
     

Remove useless onTerminate()