diff --git a/app/build.gradle b/app/build.gradle index 10c37e84d..34332b992 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,8 +13,8 @@ android { defaultConfig { minSdk 21 targetSdk 33 - versionCode 470 - versionName "3.15.1" + versionCode 471 + versionName "3.15.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } flavorDimensions "default" diff --git a/app/src/main/assets/release_notes/notes.json b/app/src/main/assets/release_notes/notes.json index 1332ab317..cce3451bf 100644 --- a/app/src/main/assets/release_notes/notes.json +++ b/app/src/main/assets/release_notes/notes.json @@ -1,4 +1,9 @@ [ + { + "version": "3.15.2", + "code": "471", + "note": "Changed:\n- Add instance name when sharing\n\nFixed:\n- Fix a crash when removing media\n- Other minor fixes" + }, { "version": "3.15.1", "code": "470", diff --git a/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java b/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java index 0b80a0ee1..a53805436 100644 --- a/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java +++ b/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java @@ -864,6 +864,11 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana WorkManager.getInstance(ComposeActivity.this).enqueue(oneTimeWorkRequest); statusDraft.workerUuid = oneTimeWorkRequest.getId(); statusDraft.scheduled_at = date; + try { + new StatusDraft(ComposeActivity.this).updateStatusDraft(statusDraft); + } catch (DBException e) { + e.printStackTrace(); + } Handler mainHandler = new Handler(Looper.getMainLooper()); Runnable myRunnable = () -> { Toasty.info(ComposeActivity.this, getString(R.string.toot_scheduled), Toasty.LENGTH_LONG).show(); diff --git a/src/fdroid/fastlane/metadata/android/en/changelogs/471.txt b/src/fdroid/fastlane/metadata/android/en/changelogs/471.txt new file mode 100644 index 000000000..7f81b3d00 --- /dev/null +++ b/src/fdroid/fastlane/metadata/android/en/changelogs/471.txt @@ -0,0 +1,6 @@ +Changed: +- Add instance name when sharing + +Fixed: +- Fix a crash when removing media +- Other minor fixes \ No newline at end of file