forked from github/szkolny
[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) {
|
||||
|
||||
private var api: SzkolnyService
|
||||
private val api: SzkolnyService
|
||||
|
||||
init {
|
||||
val okHttpClient: OkHttpClient = app.http.newBuilder()
|
||||
|
@ -628,8 +628,8 @@ class EventManualDialog(
|
||||
else if (!share && editingShared) {
|
||||
Toast.makeText(activity, "Unshare own event", Toast.LENGTH_SHORT).show()
|
||||
|
||||
editingEvent?.let { SzkolnyTask.unshareEvent(it).enqueue(activity) }
|
||||
finishRemoving()
|
||||
SzkolnyTask.unshareEvent(eventObject.withMetadata(metadataObject)).enqueue(activity)
|
||||
finishAdding(eventObject, metadataObject)
|
||||
}
|
||||
else if (share) {
|
||||
Toast.makeText(activity, "Share/update own event", Toast.LENGTH_SHORT).show()
|
||||
|
Loading…
Reference in New Issue
Block a user