mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-01-25 15:28:21 -05:00
Fix some crashes after DB refactor
This commit is contained in:
@@ -18,12 +18,14 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||
*/
|
||||
public class CardShortcutConfigure extends AppCompatActivity implements LoyaltyCardCursorAdapter.CardAdapterListener {
|
||||
static final String TAG = "Catima";
|
||||
final SQLiteDatabase mDatabase = new DBHelper(this).getReadableDatabase();
|
||||
private SQLiteDatabase mDatabase;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle bundle) {
|
||||
super.onCreate(bundle);
|
||||
|
||||
mDatabase = new DBHelper(this).getReadableDatabase();
|
||||
|
||||
// Set the result to CANCELED. This will cause nothing to happen if the
|
||||
// aback button is pressed.
|
||||
setResult(RESULT_CANCELED);
|
||||
|
||||
@@ -28,7 +28,14 @@ public class CardsOnPowerScreenService extends ControlsProviderService {
|
||||
|
||||
public static final String PREFIX = "catima-";
|
||||
static final String TAG = "Catima";
|
||||
private final SQLiteDatabase mDatabase = new DBHelper(this).getReadableDatabase();
|
||||
private SQLiteDatabase mDatabase;
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
mDatabase = new DBHelper(this).getReadableDatabase();
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user