[Pull] Offline mode #190
Labels
No Label
⌚ Major-release
⌚ Minor-release
⚔️ Wontfix
⚙️ CI
⛏️ Breaking
✨ Duplicate
❌ Invalid
❓ Question
❤️ Support
➡️ Frontport
➡️ Needs-frontport
🔙 Backport
💭 Brainstorming
🐛 Bug
🔭 Cannot-reproduce
🧺 Cleanup
🧾 Confirmed
💬 Discussion
📄 Documentation
🎯 Enhancement
🩹 External-dependecy
📱 F-droid
🎉 Feature
👋 Good-first-issue
🤾 Google-play
🔙 Has-backport
🚀 Improvement
🚨 Investigate
🌠 Long-term
🔙 Needs-backport
🧺 Needs-cleanup
📡 Needs-feedback
📈 Performance
📌 Priority-critical
📌 Priority-high
📍 Priority-low
📍 Priority-medium
🥑 Ready
🪒 Refactor
🔙 Regression
📸 Release
🔒 Security
💡 Suggestion
🧪 Testing
🌐 Translation
💻 UI/UX
🪜 Upstream
🟦 Website
🙇♂️ Needs-help
🛰️ API-dependency
🛡️ Blocked
🏗️ Build
🗒️ Changelog
🗄️ Repository
🗓️ Summary
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitnex/GitNex#190
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #186
Original Pull att :https://gitea.com/gitnex/GitNex/pulls/190
Merged with:
b6c0e94ee9
So RetroFit has already a cache function ...
Yes, it has using okhttp as interceptor.
@mmarif it doesnt cache repo lists (stared repos, my repos, ...) and user avatars
but files if opend before work offline now (if you stay in a repo) 👍
What process you carried out to test.
You should have network when open the app and browse around the pages so the app can cache the contents. After that turn off network and you will be able to see the cached contents.
@mmarif yes this works but offline mode in my definition is, once you cached the files, you should be able to close the app, switch off internet and then browse cached repos
Not sure why its not working for you. I have made a video a while ago. Check if its what you want.
https://peertube.social/videos/watch/000a8348-b180-47d4-8775-4b924f80d7c1
@mmarif - the cache is only used if contend has fully loaded (was my first problem)
Second:
Test Device: pisikal, android 9.0.9
Org avatars too
I'll test again ...
@6543 how was your test?
One thing still not work ...
ONLINE mode:
Tested with: emulated Android & physical device
So the name does not show in the Online mode in this PR, am I right?
Do you have full name in your profile saved bdw?
No
...
I haven't checked that part of the code yet, but can you add full name and see if it is working.
I will check after that to make sure it pick username/login if full name is empty.
@mmarif checked
you are right - this text field has no fallback to login name!
@mmarif done ->
fc27f7c73d