Ejemplo n.º 1
0
        protected override void OnResume()
        {
            base.OnResume();

            if (StartupTheme != db.Table <Setting> ().FirstOrDefault().Theme)
            {
                Refresh();
            }

            if (service == null)
            {
                var sericeIntent = new Intent(this, typeof(BackgroundService));
                serviceConnection = new ServiceConnection(this);
                BindService(sericeIntent, serviceConnection, Bind.AutoCreate);
            }

            OnBind();

            User user = db.Table <User>().FirstOrDefault();

            if (user != null && user.user != null)
            {
                UpdateMessagesScrollDown(user);
            }
        }
Ejemplo n.º 2
0
        private void initializeAuthenticated(User user)
        {
            StartService(new Intent(this, typeof(BackgroundService)));

            if (service == null)
            {
                var sericeIntent = new Intent(this, typeof(BackgroundService));
                serviceConnection = new ServiceConnection(this);
                BindService(sericeIntent, serviceConnection, Bind.AutoCreate);
            }

            SetContentView(Resource.Layout.Main);
            ShowChats(user);
        }
Ejemplo n.º 3
0
		private void initializeAuthenticated(User user) {
			StartService (new Intent (this, typeof(BackgroundService)));

			if (service == null) {
				var sericeIntent = new Intent (this, typeof(BackgroundService));
				serviceConnection = new ServiceConnection (this);
				BindService (sericeIntent, serviceConnection, Bind.AutoCreate);
			}

			SetContentView (Resource.Layout.Main);
			ShowChats (user);
		}
Ejemplo n.º 4
0
		protected override void OnResume() {
			base.OnResume ();

			if (StartupTheme != db.Table<Setting> ().FirstOrDefault ().Theme) {
				Refresh ();
			}

			if (service == null) {
				var sericeIntent = new Intent (this, typeof(BackgroundService));
				serviceConnection = new ServiceConnection (this);
				BindService (sericeIntent, serviceConnection, Bind.AutoCreate);
			}

			OnBind ();

			User user = db.Table<User>().FirstOrDefault ();
			if (user != null && user.user != null) {
				UpdateMessagesScrollDown (user);
			}
		}