public static Fragment NewInstance(string path, string folderName) { instance = new FolderTracks { Arguments = new Bundle() }; instance.path = path; instance.folderName = folderName; return(instance); }
void ListSongs(string displayPath, string path) { AppCompatActivity act = (AppCompatActivity)Activity; act.SupportActionBar.SetHomeButtonEnabled(true); act.SupportActionBar.SetDisplayHomeAsUpEnabled(true); act.SupportActionBar.Title = displayPath; MainActivity.instance.SupportFragmentManager.BeginTransaction().Replace(Resource.Id.contentView, FolderTracks.NewInstance(path, displayPath)).AddToBackStack(null).Commit(); }
public override void OnDestroy() { MainActivity.instance.contentRefresh.Refresh -= OnRefresh; instance = null; base.OnDestroy(); }
public override void OnResume() { base.OnResume(); instance = this; }