Add UUID to habits

This commit is contained in:
2020-11-24 07:28:16 -06:00
parent 659c528744
commit 68ccf37fd5
18 changed files with 91 additions and 39 deletions

View File

@@ -97,9 +97,9 @@ class ListHabitsScreen
commandRunner.removeListener(this)
}
override fun onCommandExecuted(command: Command, refreshKey: Long?) {
if (command.isRemote) return
showMessage(getExecuteString(command))
override fun onCommandExecuted(command: Command?, refreshKey: Long?) {
if (command != null)
showMessage(getExecuteString(command))
}
override fun onResult(requestCode: Int, resultCode: Int, data: Intent?) {

View File

@@ -19,6 +19,8 @@
package org.isoron.uhabits.tasks;
import android.util.*;
import androidx.annotation.NonNull;
import com.google.auto.factory.*;
@@ -83,7 +85,7 @@ public class ImportDataTask implements Task
catch (Exception e)
{
result = FAILED;
e.printStackTrace();
Log.e("ImportDataTask", "Import failed", e);
}
modelFactory.db.endTransaction();

View File

@@ -45,7 +45,7 @@ class WidgetUpdater
private var lastUpdated = 0L
override fun onCommandExecuted(command: Command, refreshKey: Long?) {
override fun onCommandExecuted(command: Command?, refreshKey: Long?) {
updateWidgets(refreshKey)
}