Skip to content

Commit

Permalink
Fixed issue servalproject#53 - Rhizome file list is now updated when …
Browse files Browse the repository at this point in the history
…you unshare a file
  • Loading branch information
Blucalculator committed Mar 7, 2013
1 parent 3510c06 commit b1465f9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/org/servalproject/rhizome/RhizomeList.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import android.app.ListActivity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.IntentFilter.MalformedMimeTypeException;
Expand All @@ -49,7 +50,7 @@
*
* @author Andrew Bettison <andrew@servalproject.com>
*/
public class RhizomeList extends ListActivity {
public class RhizomeList extends ListActivity implements DialogInterface.OnDismissListener {

static final int DIALOG_DETAILS_ID = 0;
String service;
Expand Down Expand Up @@ -172,6 +173,7 @@ protected void onPrepareDialog(int id, Dialog dialog, Bundle bundle) {
detail.setManifest(result.manifest);
detail.enableSaveOrOpenButton();
detail.disableUnshareButton();
detail.setOnDismissListener(this);
if (!result._readOnly)
detail.enableUnshareButton();
} catch (Exception e) {
Expand All @@ -185,4 +187,10 @@ protected void onPrepareDialog(int id, Dialog dialog, Bundle bundle) {
super.onPrepareDialog(id, dialog, bundle);
}

@Override
public void onDismiss(DialogInterface arg0) {
listFiles();

}

}

0 comments on commit b1465f9

Please sign in to comment.