void OnSendClicked(object sender, EventArgs e)
        {
            if (App.bitmap == null || String.IsNullOrEmpty(inpText.Text))
            {
                Toast.MakeText(this, "Kein Text, kein Bild, kein Post ;)", ToastLength.Long).Show();
                return;
            }

            WallPost post = CreateWallPost();

            _newsfeedMessageProcessor.PostSingleNewsfeed(post);
            _newsfeedRepository.DeleteAllWallPosts();
            Toast.MakeText(this, "Posted", ToastLength.Short).Show();
            App.bitmap = null;
            Finish();
        }
예제 #2
0
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            if (item.ItemId == Resource.Id.add_wallpost)
            {
                StartActivity(typeof(ActivityWallPostAdd));
            }

            if (item.ItemId == Resource.Id.menu_newsfeed_refresh)
            {
                new Thread(() => {
                    _newsfeedRepo.DeleteAllWallPosts();
                    _newsfeedMessageProcessor.GetAllNewsfeeds();
                    //RunOnUiThread(() => UpdateList (_newsfeedRepo.GetWallPosts()));
                }).Start();
            }
            return(base.OnOptionsItemSelected(item));
        }