Add delete and re-draft

main
koyu 3 years ago
parent 19f22ccc00
commit b81eca962b
  1. 4
      app/build.gradle
  2. 4
      app/src/main/java/com/keylesspalace/tusky/components/search/fragments/SearchStatusesFragment.kt
  3. 4
      app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java
  4. 3
      app/src/main/res/menu/status_more_for_user.xml
  5. 2
      build.gradle

@ -27,8 +27,8 @@ android {
applicationId APP_ID
minSdkVersion 21
targetSdkVersion 29
versionCode 3100
versionName '3.1'
versionCode 3200
versionName '3.2'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true

@ -353,6 +353,10 @@ 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

@ -368,6 +368,10 @@ 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;

@ -37,6 +37,9 @@
android:id="@+id/status_unreblog_private"
android:title="@string/unreblog_private"
android:visible="false" />
<item
android:id="@+id/status_delete_and_redraft"
android:title="@string/action_delete_and_redraft" />
<item
android:id="@+id/status_delete"
android:title="@string/action_delete" />

@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.0'
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

Loading…
Cancel
Save