Merge branch 'develop'

This commit is contained in:
Kuba Szczodrzyński 2019-09-20 22:50:15 +02:00
commit eab5fdacee
2 changed files with 126 additions and 113 deletions

View File

@ -880,11 +880,17 @@ public class Iuczniowie implements EdziennikInterface {
boolean countToTheAverage = jGrade.get("DoSredniej").getAsBoolean();
float value = jGrade.get("WartoscDoSred").getAsFloat();
String gradeColor = jGrade.get("Kolor").getAsString();
int colorInt = 0xff2196f3;
if (!gradeColor.isEmpty()) {
colorInt = Color.parseColor("#"+gradeColor);
}
Grade gradeObject = new Grade(
profileId,
jGrade.get("idK").getAsLong(),
jGrade.get("Kategoria").getAsString(),
Color.parseColor("#"+jGrade.get("Kolor").getAsString()),
colorInt,
"",
jGrade.get("Ocena").getAsString(),
value,

View File

@ -17,10 +17,14 @@
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/webPushConfig"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
@ -139,14 +143,15 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:orientation="horizontal">
android:orientation="vertical">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:text="W przeglądarce na komputerze wejdź na stronę\n\nhttp://edziennik.szczodrzynski.pl/wp\n\nUdziel zgody na wysyłanie powiadomień, następnie zeskanuj wygenerowany kod QR.\n\nPod tym samym adresem możesz zarządzać listą sparowanych z przeglądarką urządzeń.\n\nJeśli sparujesz kilka urządzeń z tą samą przeglądarką, możesz otrzymywać te same powiadomienia kilkukrotnie." />
<Button
@ -154,10 +159,12 @@
style="@style/Widget.AppCompat.Button.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:text="Skanuj..." />
</LinearLayout>
</LinearLayout>
</ScrollView>
<me.dm7.barcodescanner.zxing.ZXingScannerView
android:id="@+id/qrCodeScanner"