Fixed two issues with V4.1 - main activity shows not logged in to data sharing when it is, and report seizure screen crashes when selecting date.
This commit is contained in:
@@ -40,6 +40,7 @@ public class ReportSeizureActivity extends AppCompatActivity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
Log.v(TAG, "onCreate()");
|
||||
super.onCreate(savedInstanceState);
|
||||
mContext = this;
|
||||
mUtil = new OsdUtil(this, serverStatusHandler);
|
||||
if (!mUtil.isServerRunning()) {
|
||||
mUtil.showToast(getString(R.string.error_server_not_running));
|
||||
|
||||
@@ -88,10 +88,10 @@ public class WebApiConnection {
|
||||
FirebaseAuth auth = FirebaseAuth.getInstance();
|
||||
if (auth != null) {
|
||||
Log.v(TAG, "isLoggedIn(): Firebase Logged in OK");
|
||||
return (false);
|
||||
return (true);
|
||||
} else {
|
||||
Log.v(TAG, "isLoggedIn(): Firebase not logged in");
|
||||
return (true);
|
||||
return (false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user