Ejemplo n.º 1
0
 @Override
 public void onActivityResult(int requestCode, int resultCode, Intent data) {
   super.onActivityResult(requestCode, resultCode, data);
   if (requestCode == REQUEST_COMPOSE_MAIL && resultCode == Activity.RESULT_OK) {
     if (inNetwork()) {
       scope.main().requestSync(MailProvider.AUTHORITY);
       Toast.makeText(getActivity(), _s(R.string.message_sent), Toast.LENGTH_LONG).show();
     } else {
       Toast.makeText(getActivity(), _s(R.string.message_cant_sent), Toast.LENGTH_LONG).show();
     }
   }
 }
Ejemplo n.º 2
0
 @Override
 public void onResume() {
   super.onResume();
   getActivity().getActionBar().hide();
 }
Ejemplo n.º 3
0
 @Override
 public void onViewCreated(View view, Bundle savedInstanceState) {
   super.onViewCreated(view, savedInstanceState);
   mView = view;
   init(mView);
 }