Skip to content

Commit 7d7b418

Browse files
V.1. s
olución de el error del principio al reiniciar
1 parent 30b919e commit 7d7b418

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

stira/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stira/app/src/main/java/com/example/stira/MainActivity.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,21 @@ protected void onCreate(Bundle savedInstanceState) {
2828

2929
SharedPreferences sharedPreferences = getSharedPreferences("archivoSP", contexto.MODE_PRIVATE);
3030

31-
ultimosDatos = getIntent().getIntArrayExtra("ultimosIntroducidos");
32-
3331
getUI();
3432

3533
activarEscuchadores();
3634

3735

38-
3936
if (getIntent().getIntArrayExtra("ultimosIntroducidos") == null) {
4037

38+
ultimaVez.setVisibility(View.GONE);
4139

40+
}
4241

42+
else{
4343

44-
} else {
45-
46-
ultimosDatos = getIntent().getIntArrayExtra("ultimosIntroducidos");
44+
guardarUltimosValores(getIntent().getIntArrayExtra("ultimosIntroducidos"));
4745

48-
guardarUltimosValores(ultimosDatos);
4946
}
5047

5148

0 commit comments

Comments
 (0)