forked from github/szkolny
Merge branch 'hotfix-3.0.1' into develop
This commit is contained in:
@ -229,8 +229,8 @@ class MainActivity : AppCompatActivity() {
|
||||
drawer.init(this@MainActivity)
|
||||
|
||||
SystemBarsUtil(this@MainActivity).run {
|
||||
paddingByKeyboard = b.navView
|
||||
appFullscreen = true
|
||||
//paddingByKeyboard = b.navView
|
||||
appFullscreen = false
|
||||
statusBarColor = getColorFromAttr(context, android.R.attr.colorBackground)
|
||||
statusBarDarker = false
|
||||
statusBarFallbackLight = COLOR_HALF_TRANSPARENT
|
||||
@ -239,6 +239,8 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
b.navView.configSystemBarsUtil(this)
|
||||
|
||||
// TODO fix navlib navbar detection, orientation change issues, status bar color setting if not fullscreen
|
||||
|
||||
commit()
|
||||
}
|
||||
|
||||
|
@ -1600,6 +1600,10 @@ public class Librus implements EdziennikInterface {
|
||||
r("finish", "Classrooms");
|
||||
return;
|
||||
}
|
||||
if (data.get("Classrooms") == null) {
|
||||
r("finish", "Classrooms");
|
||||
return;
|
||||
}
|
||||
JsonArray jClassrooms = data.get("Classrooms").getAsJsonArray();
|
||||
//d("Got Classrooms: "+jClassrooms.toString());
|
||||
classrooms.clear();
|
||||
|
@ -794,7 +794,7 @@ public class Mobidziennik implements EdziennikInterface {
|
||||
switch (e.tagName()) {
|
||||
case "div": {
|
||||
//d(TAG, "Outer HTML "+e.outerHtml());
|
||||
Matcher matcher = Pattern.compile("<div.*?>\\n*\\s*(.+?)\\n*(?:<.*?)??</div>", Pattern.DOTALL).matcher(e.outerHtml());
|
||||
Matcher matcher = Pattern.compile("<div.*?>\\n*\\s*(.+?)\\s*\\n*(?:<.*?)??</div>", Pattern.DOTALL).matcher(e.outerHtml());
|
||||
if (matcher.find()) {
|
||||
subjectName = matcher.group(1);
|
||||
}
|
||||
@ -1456,8 +1456,8 @@ public class Mobidziennik implements EdziennikInterface {
|
||||
}
|
||||
String[] user = userStr.split("\\|", Integer.MAX_VALUE);
|
||||
|
||||
teachersMap.put(strToInt(user[0]), user[5]+" "+user[4]);
|
||||
teacherList.add(new Teacher(profileId, strToInt(user[0]), user[4], user[5]));
|
||||
teachersMap.put(strToInt(user[0]), user[5].trim()+" "+user[4].trim());
|
||||
teacherList.add(new Teacher(profileId, strToInt(user[0]), user[4].trim(), user[5].trim()));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1958,7 +1958,7 @@ public class Mobidziennik implements EdziennikInterface {
|
||||
for(int i = 0; i < teachersMap.size(); i++) {
|
||||
int key = teachersMap.keyAt(i);
|
||||
String str = teachersMap.valueAt(i);
|
||||
if ((lesson[7] + " " + lesson[6]).equalsIgnoreCase(str)) {
|
||||
if ((lesson[7].trim() + " " + lesson[6].trim()).equalsIgnoreCase(str)) {
|
||||
lessonObject.teacherId = key;
|
||||
}
|
||||
}
|
||||
@ -2001,7 +2001,7 @@ public class Mobidziennik implements EdziennikInterface {
|
||||
for(int i = 0; i < teachersMap.size(); i++) {
|
||||
int key = teachersMap.keyAt(i);
|
||||
String str = teachersMap.valueAt(i);
|
||||
if ((lesson[7] + " " + lesson[6]).equalsIgnoreCase(str)) {
|
||||
if ((lesson[7].trim() + " " + lesson[6].trim()).equalsIgnoreCase(str)) {
|
||||
lessonChange.teacherId = key;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user