Made gravity setting work. Need to keep it saved when going back and
forth between activities.