-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Multi-User and progress tracking functionality #18
base: newmaster
Are you sure you want to change the base?
Conversation
harry6396
commented
Jun 3, 2019
- Added multi-user support.
- Added feature to track the progress of each user.
… also made sliding_mages.xml responsive
kitkitschoollogger/kitkitlogger/src/main/java/com/maq/kitkitProvider/KitkitDBHandler.java
Outdated
Show resolved
Hide resolved
kitkitschoollogger/kitkitlogger/src/main/java/com/maq/kitkitProvider/User.java
Outdated
Show resolved
Hide resolved
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />--> | ||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a merge from master and remove commented code wherever applicable
@@ -76,6 +76,7 @@ dependencies { | |||
exclude group: 'com.android.support', module: 'support-annotations' | |||
}) | |||
compile 'com.android.support:appcompat-v7:25.1.0' | |||
compile 'de.hdodenhof:circleimageview:3.0.0' | |||
compile 'com.android.support:design:25.1.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use api or implementation instead of compile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried but it's not able to find a file required in implementation mode
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />--> | ||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | ||
--> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if this is required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was there before, for wifi access and network access, might need it in future.
launcher/app/src/main/java/com/maq/xprize/kitkitlauncher/hindi/SlidingPagerAdapter.java
Show resolved
Hide resolved
|
||
@Override | ||
public boolean isViewFromObject(View view, Object object) { | ||
return view == object; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
== will always return false. Use equals()
https://www.geeksforgeeks.org/difference-equals-method-java/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked online, we should use == only here for equating.
@@ -147,6 +147,17 @@ public void onSelectedNumber(int number) { | |||
{ | |||
KitkitDBHandler dbHandler = ((LauncherApplication) getApplication()).getDbHandler(); | |||
ArrayList<User> users = dbHandler.getUserList(); | |||
try { | |||
schoolContext = getApplicationContext().createPackageContext("com.maq.xprize.kitkitschool.hindi", 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use method to fetch package name instead of hardcoding
android:layout_marginTop="40dp" | ||
android:layout_marginBottom="8dp" | ||
android:gravity="center" | ||
android:text="Select User\nउपयोगकर्ता चयन" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\n is used for printing Hindi text in next line
android:background="@drawable/roundtextview" | ||
android:fontFamily="Segoe UI" | ||
android:gravity="center_horizontal" | ||
android:text="Maths\\गणित" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can you explain me why to use
gamesClearedInTotal++; | ||
UserDefault::getInstance()->setIntegerForKey(gamesClearedInTotalKey.c_str(), gamesClearedInTotal); | ||
} | ||
/////////////////////////////// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please comment properly. This code repo is public.
This reverts commit e6fca9b.
…hub.com/maqsoftware/GLEXP-Team-KitkitSchool-Hindi into UserProfile_ProgressTracker_Integration
…gressTracker_Integration
…hub.com/maqsoftware/GLEXP-Team-KitkitSchool-Hindi into UserProfile_ProgressTracker_Integration
…hub.com/maqsoftware/GLEXP-Team-KitkitSchool-Hindi into UserProfile_ProgressTracker_Integration