1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-29 11:10:35 +02:00

removed async user add

This commit is contained in:
OliE
2018-01-16 17:12:20 +01:00
parent c1f247cb27
commit 6f2db39f32

View File

@@ -19,7 +19,6 @@ package com.health.openscale.core;
import android.arch.persistence.room.Room;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
@@ -118,12 +117,7 @@ public class OpenScale {
public void addScaleUser(final ScaleUser user)
{
AsyncTask.execute(new Runnable() {
@Override
public void run() {
userDAO.insert(user);
}
});
userDAO.insert(user);
}
public List<ScaleUser> getScaleUserList()