error message fixed when moving to session without inet

parent 1b41b14b
...@@ -1136,13 +1136,8 @@ public class VOCA extends Activity implements VocabularyTalk.iVocabularyListener ...@@ -1136,13 +1136,8 @@ public class VOCA extends Activity implements VocabularyTalk.iVocabularyListener
} else if (firstTouchX > event.getX() + 150) { //derecha a izquierda } else if (firstTouchX > event.getX() + 150) { //derecha a izquierda
// Pasa de voca a VocabularyManager // 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; in = R.anim.leftin;
out = R.anim.leftout; out = R.anim.leftout;
if (nextActivity != null) { if (nextActivity != null) {
......
...@@ -786,13 +786,9 @@ public class VocabularyManager extends Activity implements VocabularyTalk.iVocab ...@@ -786,13 +786,9 @@ public class VocabularyManager extends Activity implements VocabularyTalk.iVocab
if (event.getX() > firstTouchX + 150) { // izquierda a derecha if (event.getX() > firstTouchX + 150) { // izquierda a derecha
// Pasa de VocabularyManager a voca // 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); nextActivity = new Intent(this, VOCA.class);
in=R.anim.rightin; in=R.anim.rightin;
out=R.anim.rightout; out=R.anim.rightout;
}
} else if (firstTouchX > event.getX() + 150) { //derecha a izquierda } 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