public override void OnActivityCreated(Bundle savedInstanceState) { instance = this; base.OnActivityCreated(savedInstanceState); Preferences.instance.SupportActionBar.Title = GetString(Resource.String.opensource); //ListView.Divider = null; ListView.TextFilterEnabled = true; ListView.DividerHeight = 0; ListAdapter = new LibrariesAdapter(Preferences.instance, 0, libraries.Keys.ToList()); ListView.ItemClick += (_, e) => { isPaused = true; Intent intent = new Intent(Intent.ActionView); intent.SetData(Uri.Parse(libraries.ElementAt(e.Position).Value)); StartActivity(intent); }; }
public override void OnDestroy() { base.OnDestroy(); instance = null; }
public override void OnResume() { base.OnResume(); instance = this; isPaused = false; }