diff --git a/.gitignore b/.gitignore
index cf28ccc..109450c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -43,6 +43,7 @@ captures/
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
+.idea/misc.xml
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 703e5d4..8a8f75b 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -5,7 +5,7 @@
-
+
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..1a07700
--- /dev/null
+++ b/README.md
@@ -0,0 +1,5 @@
+# Bark
+An Android Log Viewer to Help debugging a program. Mostly made for debuggin stuff.
+Shows a realtime stream of logs happenning in the app, sdk, etc.
+
+
diff --git a/bark/src/main/java/sh/hadi/bark/ui/LogViewModel.kt b/bark/src/main/java/sh/hadi/bark/ui/LogViewModel.kt
index 2944177..ca0b927 100644
--- a/bark/src/main/java/sh/hadi/bark/ui/LogViewModel.kt
+++ b/bark/src/main/java/sh/hadi/bark/ui/LogViewModel.kt
@@ -7,11 +7,9 @@ import sh.hadi.bark.db.LogItem
class LogViewModel(private val dataSource: LogDao) : ViewModel() {
- fun addLog(log: LogItem) {
- dataSource.insertLog(log)
- }
+ fun addLog(log: LogItem) = Thread { dataSource.insertLog(log) }.start()
fun getLogs(): LiveData> = dataSource.getLogs()
- fun clearLogs() = dataSource.deleteAlLogs()
+ fun clearLogs() = Thread{ dataSource.deleteAlLogs() }.start()
}
\ No newline at end of file