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); } }
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); }
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); }
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); } }