Skip to content

Commit

Permalink
feat(settings): display filter URL in recents
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed May 15, 2024
1 parent 6faa497 commit 88e11f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.joinmastodon.android.fragments.settings;

import android.app.AlertDialog;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.Menu;
Expand Down Expand Up @@ -329,4 +330,8 @@ public boolean onBackPressed(){
}
return false;
}
@Override
public Uri getWebUri(Uri.Builder base) {
return base.path(filter == null ? "/filters/new" : "/filters/"+ filter.id + "/edit").build();
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.joinmastodon.android.fragments.settings;

import android.net.Uri;
import android.os.Bundle;

import com.squareup.otto.Subscribe;
Expand Down Expand Up @@ -107,4 +108,9 @@ public void onFilterCreatedOrUpdated(SettingsFilterCreatedOrUpdatedEvent ev){
data.add(makeListItem(ev.filter));
itemsAdapter.notifyItemInserted(data.size()-1);
}

@Override
public Uri getWebUri(Uri.Builder base) {
return base.path("/filters").build();
}
}

0 comments on commit 88e11f2

Please sign in to comment.