Ejemplo n.º 1
0
 public static Fragment NewInstance(string path, string folderName)
 {
     instance = new FolderTracks {
         Arguments = new Bundle()
     };
     instance.path       = path;
     instance.folderName = folderName;
     return(instance);
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public override void OnDestroy()
 {
     MainActivity.instance.contentRefresh.Refresh -= OnRefresh;
     instance = null;
     base.OnDestroy();
 }
Ejemplo n.º 4
0
 public override void OnResume()
 {
     base.OnResume();
     instance = this;
 }