use of com.example.first_responder_app.dataModels.UsersDataModel in project FirstResponse by mattpost1700.
the class MainActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
updateTheme();
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
setupAppBar();
if (savedInstanceState != null) {
String user_id = savedInstanceState.getString("user_id");
String username = savedInstanceState.getString("username");
String first = savedInstanceState.getString("first");
String last = savedInstanceState.getString("last");
if (user_id != null && username != null) {
UsersDataModel user = new UsersDataModel();
user.setDocumentId(user_id);
user.setUsername(username);
user.setFirst_name(first);
user.setLast_name(last);
setActive(user);
}
}
}
Aggregations