private void goBack() { F.async(() => { loading = false; Thread.Sleep(10); //Tell any running process to stop, then re-allow the next process loading = true; list.runOnUiThread(() => { list.Controls.Clear(); }); this.runOnUiThread(() => { if (!string.IsNullOrEmpty(currentPath)) { populate(Path.GetDirectoryName(currentPath)); } }); }); }