mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-18 21:06:44 -06:00
[Dialog/EventManual] Unshare using eventObject
instead of editingEvent
.
This commit is contained in:
parent
ad5afac174
commit
b8cf731dd0
@ -25,7 +25,7 @@ import java.util.concurrent.TimeUnit.SECONDS
|
|||||||
|
|
||||||
class SzkolnyApi(val app: App) {
|
class SzkolnyApi(val app: App) {
|
||||||
|
|
||||||
private var api: SzkolnyService
|
private val api: SzkolnyService
|
||||||
|
|
||||||
init {
|
init {
|
||||||
val okHttpClient: OkHttpClient = app.http.newBuilder()
|
val okHttpClient: OkHttpClient = app.http.newBuilder()
|
||||||
|
@ -628,8 +628,8 @@ class EventManualDialog(
|
|||||||
else if (!share && editingShared) {
|
else if (!share && editingShared) {
|
||||||
Toast.makeText(activity, "Unshare own event", Toast.LENGTH_SHORT).show()
|
Toast.makeText(activity, "Unshare own event", Toast.LENGTH_SHORT).show()
|
||||||
|
|
||||||
editingEvent?.let { SzkolnyTask.unshareEvent(it).enqueue(activity) }
|
SzkolnyTask.unshareEvent(eventObject.withMetadata(metadataObject)).enqueue(activity)
|
||||||
finishRemoving()
|
finishAdding(eventObject, metadataObject)
|
||||||
}
|
}
|
||||||
else if (share) {
|
else if (share) {
|
||||||
Toast.makeText(activity, "Share/update own event", Toast.LENGTH_SHORT).show()
|
Toast.makeText(activity, "Share/update own event", Toast.LENGTH_SHORT).show()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user