[UI/Attendance] Disable Mobidziennik sync reminder.

This commit is contained in:
Kuba Szczodrzyński 2020-01-05 18:40:29 +01:00
parent 33fcffd2bd
commit 834c4fc5f4

View File

@ -22,10 +22,6 @@ import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import com.danimahardhika.cafebar.CafeBar;
import com.mikepenz.iconics.IconicsColor;
import com.mikepenz.iconics.IconicsDrawable;
import com.mikepenz.iconics.IconicsSize;
import com.mikepenz.iconics.typeface.library.community.material.CommunityMaterial; import com.mikepenz.iconics.typeface.library.community.material.CommunityMaterial;
import java.text.DecimalFormat; import java.text.DecimalFormat;
@ -41,8 +37,6 @@ import pl.szczodrzynski.edziennik.data.db.modules.attendance.AttendanceFull;
import pl.szczodrzynski.edziennik.data.db.modules.subjects.Subject; import pl.szczodrzynski.edziennik.data.db.modules.subjects.Subject;
import pl.szczodrzynski.edziennik.databinding.FragmentAttendanceBinding; import pl.szczodrzynski.edziennik.databinding.FragmentAttendanceBinding;
import pl.szczodrzynski.edziennik.utils.Themes; import pl.szczodrzynski.edziennik.utils.Themes;
import pl.szczodrzynski.edziennik.utils.models.Date;
import pl.szczodrzynski.edziennik.utils.models.Week;
import pl.szczodrzynski.navlib.bottomsheet.items.BottomSheetPrimaryItem; import pl.szczodrzynski.navlib.bottomsheet.items.BottomSheetPrimaryItem;
import static pl.szczodrzynski.edziennik.data.db.modules.attendance.Attendance.TYPE_ABSENT; import static pl.szczodrzynski.edziennik.data.db.modules.attendance.Attendance.TYPE_ABSENT;
@ -123,7 +117,7 @@ public class AttendanceFragment extends Fragment {
popupMenu.show(); popupMenu.show();
})); }));
if (app.profile.getLoginStoreType() == LOGIN_TYPE_MOBIDZIENNIK) { /*if (app.profile.getLoginStoreType() == LOGIN_TYPE_MOBIDZIENNIK) {
long attendanceLastSync = app.profile.getStudentData("attendanceLastSync", (long)0); long attendanceLastSync = app.profile.getStudentData("attendanceLastSync", (long)0);
if (attendanceLastSync == 0) { if (attendanceLastSync == 0) {
attendanceLastSync = app.profile.getSemesterStart(1).getInMillis(); attendanceLastSync = app.profile.getSemesterStart(1).getInMillis();
@ -153,9 +147,9 @@ public class AttendanceFragment extends Fragment {
.floating(true) .floating(true)
.show(); .show();
} }
} }*/
if (app.profile.getLoginStoreType() == LOGIN_TYPE_MOBIDZIENNIK && false) { if (app.profile.getLoginStoreType() == LOGIN_TYPE_MOBIDZIENNIK) {
b.attendanceSummarySubject.setVisibility(View.GONE); b.attendanceSummarySubject.setVisibility(View.GONE);
} }
else { else {