mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Update widgets after executing command
This commit is contained in:
@@ -41,6 +41,7 @@ import org.isoron.uhabits.helpers.UIHelper;
|
||||
import org.isoron.uhabits.fragments.ListHabitsFragment;
|
||||
import org.isoron.uhabits.helpers.ReminderHelper;
|
||||
import org.isoron.uhabits.models.Habit;
|
||||
import org.isoron.uhabits.tasks.BaseTask;
|
||||
import org.isoron.uhabits.widgets.CheckmarkWidgetProvider;
|
||||
import org.isoron.uhabits.widgets.FrequencyWidgetProvider;
|
||||
import org.isoron.uhabits.widgets.HistoryWidgetProvider;
|
||||
@@ -212,15 +213,14 @@ public class MainActivity extends BaseActivity
|
||||
{
|
||||
listHabitsFragment.onPostExecuteCommand(refreshKey);
|
||||
|
||||
new AsyncTask<Void, Void, Void>()
|
||||
new BaseTask()
|
||||
{
|
||||
@Override
|
||||
protected Void doInBackground(Void... params)
|
||||
protected void doInBackground()
|
||||
{
|
||||
updateWidgets(MainActivity.this);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}.execute();
|
||||
}
|
||||
|
||||
public static void updateWidgets(Context context)
|
||||
|
||||
Reference in New Issue
Block a user