error message fixed when moving to session without inet

parent 1b41b14b
......@@ -1136,12 +1136,7 @@ public class VOCA extends Activity implements VocabularyTalk.iVocabularyListener
} else if (firstTouchX > event.getX() + 150) { //derecha a izquierda
// Pasa de voca a VocabularyManager
if (!PCBcontext.getNetService().online()){
GUITools.show_alert(VOCA.this, R.string.session_noinet);
}else{
nextActivity = new Intent(this, VocabularyManager.class);
}
nextActivity = new Intent(this, VocabularyManager.class);
}
in = R.anim.leftin;
out = R.anim.leftout;
......
......@@ -786,13 +786,9 @@ public class VocabularyManager extends Activity implements VocabularyTalk.iVocab
if (event.getX() > firstTouchX + 150) { // izquierda a derecha
// Pasa de VocabularyManager a voca
if (!PCBcontext.getNetService().online()){
GUITools.show_alert(VocabularyManager.this, R.string.session_noinet);
}else{
nextActivity = new Intent(this, VOCA.class);
in=R.anim.rightin;
out=R.anim.rightout;
}
nextActivity = new Intent(this, VOCA.class);
in=R.anim.rightin;
out=R.anim.rightout;
} else if (firstTouchX > event.getX() + 150) { //derecha a izquierda
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment