Initial Implementation of #522 #721

Merged
sarah merged 4 commits from stable-blockers into trunk 2023-09-11 21:53:41 +00:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit 864d862219 - Show all commits

View File

@ -191,7 +191,7 @@ class MainActivity: FlutterActivity() {
CALL_APP_INFO -> result.success(getNativeLibDir())
?: result.error("Unavailable", "nativeLibDir not available", null);
CALL_SERVICE_INFO -> result.success(getForegroundServiceInfo())
?: result.error("Unavailable", "nativeLibDir not available", null);
?: result.error("Unavailable", "getForegroundServiceInfo not available", null);
else -> result.notImplemented()
}
}
@ -229,7 +229,6 @@ class MainActivity: FlutterActivity() {
fun getForegroundServiceInfo(): HashMap<String,String> {
Log.d("MainActivity.kt", "getForgegroundServiceInfo called...")
var hashMap : HashMap<String, String>
= HashMap<String, String> ();
val workmanager = WorkManager.getInstance(this);
@ -243,7 +242,6 @@ class MainActivity: FlutterActivity() {
hashMap.put("workmanager.${workInfo.id}.state", workInfo.state.toString());
}
}
Log.d("MainActivity.kt", "getForgegroundServiceInfo finished...")
return hashMap
}