Beispiel #1
0
 public static Fragment NewInstance(string path)
 {
     instance = new DownloadFragment {
         Arguments = new Bundle()
     };
     instance.path = path;
     return(instance);
 }
Beispiel #2
0
 public override void OnDestroy()
 {
     base.OnDestroy();
     instance = null;
 }
Beispiel #3
0
 private async void DownloadClick(object sender, Preference.PreferenceClickEventArgs e)
 {
     if (await Preferences.instance.GetReadPermission())
     {
         Preferences.instance.SupportFragmentManager.BeginTransaction().Replace(Android.Resource.Id.ListContainer, DownloadFragment.NewInstance(path)).AddToBackStack(null).Commit();
         Preferences.instance.SupportActionBar.Title = "Download Location";
     }
 }