|
|
|
@ -4,6 +4,7 @@ import android.content.Context |
|
|
|
|
import android.content.Intent |
|
|
|
|
import android.os.Bundle |
|
|
|
|
import android.view.View |
|
|
|
|
import android.view.MenuItem |
|
|
|
|
import androidx.appcompat.widget.Toolbar |
|
|
|
|
import androidx.lifecycle.Lifecycle |
|
|
|
|
import androidx.recyclerview.widget.DividerItemDecoration |
|
|
|
@ -80,6 +81,16 @@ class ScheduledTootActivity : BaseActivity(), ScheduledTootAdapter.ScheduledToot |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onOptionsItemSelected(item: MenuItem): Boolean { |
|
|
|
|
when (item.itemId) { |
|
|
|
|
android.R.id.home -> { |
|
|
|
|
onBackPressed() |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return super.onOptionsItemSelected(item) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun loadStatuses() { |
|
|
|
|
progress_bar.visibility = View.VISIBLE |
|
|
|
|
mastodonApi.scheduledStatuses() |
|
|
|
|