StatusFragment: delete delete and redraft

main
Alibek Omarov 4 years ago
parent b7892dc781
commit 4df757b4b3
  1. 4
      app/src/main/java/com/keylesspalace/tusky/components/search/fragments/SearchStatusesFragment.kt
  2. 4
      app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java
  3. 3
      app/src/main/res/menu/status_more_for_user.xml

@ -339,10 +339,6 @@ class SearchStatusesFragment : SearchFragment<Pair<Status, StatusViewData.Concre
showConfirmDeleteDialog(id, position)
return@setOnMenuItemClickListener true
}
R.id.status_delete_and_redraft -> {
showConfirmEditDialog(id, position, status)
return@setOnMenuItemClickListener true
}
R.id.pin -> {
viewModel.pinAccount(status, !status.isPinned())
return@setOnMenuItemClickListener true

@ -369,10 +369,6 @@ public abstract class SFragment extends BaseFragment implements Injectable {
showConfirmDeleteDialog(id, position);
return true;
}
case R.id.status_delete_and_redraft: {
showConfirmEditDialog(id, position, status);
return true;
}
case R.id.pin: {
timelineCases.pin(status, !status.isPinned());
return true;

@ -43,7 +43,4 @@
<item
android:id="@+id/status_delete"
android:title="@string/action_delete" />
<item
android:id="@+id/status_delete_and_redraft"
android:title="@string/action_delete_and_redraft" />
</menu>

Loading…
Cancel
Save