mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
Merge branch 'hotfix-3.0.1'
This commit is contained in:
commit
8d9459804f
@ -31,6 +31,13 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h3>Wersja 3.0.1, 2019-09-19</h3>
|
||||
<ul>
|
||||
<li>Librus: Poprawa błędu synchronizacji.</li>
|
||||
<li>Poprawki UI związane z paskiem nawigacji.</li>
|
||||
<li>Mobidziennik: Pobieranie ocen w niektórych przedmiotach.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Wersja 3.0, 2019-09-13</h3>
|
||||
<ul>
|
||||
<li><b>Nowy wygląd i sposób nawigacji</b> w całej aplikacji.</li>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -95,6 +95,8 @@
|
||||
<item name="mal_color_secondary">?android:textColorSecondary</item>
|
||||
<item name="mal_card_background">?colorSurface</item>
|
||||
<item name="mal_divider_color">@color/dividerColor</item>
|
||||
|
||||
<item name="android:statusBarColor" tools:targetApi="lollipop">?android:windowBackground</item>
|
||||
</style>
|
||||
<style name="AppTheme.Dark" parent="NavView.Dark">
|
||||
<item name="colorPrimary">#64b5f6</item>
|
||||
@ -119,6 +121,8 @@
|
||||
<item name="mal_color_secondary">@color/secondaryTextDark</item>
|
||||
<item name="mal_card_background">?colorSurface</item>
|
||||
<item name="mal_divider_color">@color/dividerColor</item>
|
||||
|
||||
<item name="android:statusBarColor" tools:targetApi="lollipop">?android:windowBackground</item>
|
||||
</style>
|
||||
|
||||
|
||||
|
@ -5,8 +5,8 @@ buildscript {
|
||||
kotlin_version = '1.3.50'
|
||||
|
||||
release = [
|
||||
versionName: "3.0",
|
||||
versionCode: 3000099
|
||||
versionName: "3.0.1-rc.1",
|
||||
versionCode: 3000110
|
||||
]
|
||||
|
||||
setup = [
|
||||
|
Loading…
Reference in New Issue
Block a user