diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/EditFilterFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/EditFilterFragment.java index 6aa1edea0d..aaea4b942f 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/EditFilterFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/EditFilterFragment.java @@ -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; @@ -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(); + } } diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsFiltersFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsFiltersFragment.java index b2a40c9532..d0cdb6f789 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsFiltersFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsFiltersFragment.java @@ -1,5 +1,6 @@ package org.joinmastodon.android.fragments.settings; +import android.net.Uri; import android.os.Bundle; import com.squareup.otto.Subscribe; @@ -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(); + } }