Skip to content
This repository has been archived by the owner on Sep 1, 2018. It is now read-only.

Commit

Permalink
Fix null null bug
Browse files Browse the repository at this point in the history
Heb de bug niet kunnen reproduceren, dus weet niet of deze gefixt is.
  • Loading branch information
mixxamm committed Jun 7, 2018
1 parent cf79ee3 commit 9014b3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
minSdkVersion 19
targetSdkVersion 27
versionCode 22
versionName "2.2.2_rc.1"
versionName "2.2.2_rc.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package one.smartpass.android;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
Expand Down Expand Up @@ -199,4 +200,11 @@ public void onDestroy(){
super.onDestroy();
setScreenBrightnessTo(BRIGHTNESS_OVERRIDE_NONE);
}
public void onResume(){
super.onResume();
if(naamLeerling.equals(null)){
Intent mainActivity = new Intent(getContext(), MainActivity.class);
startActivity(mainActivity);
}
}
}

0 comments on commit 9014b3d

Please sign in to comment.