mirror of
https://github.com/jberkel/sms-backup-plus.git
synced 2026-04-25 17:05:59 +03:00
[PR #586] [MERGED] Improve restore experience #973
Labels
No labels
AM+RCS
FAQ
awaiting response
backup
bespoke
bug
calendar
call log
cannot reproduce
cloudless
device-specific
documentation
dual- & multi-SIM
duplicate
feature-request
fixed in beta
good first issue
half-missing
help wanted
helpful
meta
misattribution
mms
other message sources
pull-request
question
rejuvenation
restore
schedule
security
stale
task
thanks
v1.5.1
v1.5.10
v1.5.11
v1.5.2
v1.5.3
v1.5.3
v1.5.4
v1.5.4
v1.5.5
v1.5.5
v1.5.6
v1.5.7
v1.5.8
v1.5.9
v1.6β
xoauth
~$ bounty $~
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sms-backup-plus-jberkel#973
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/jberkel/sms-backup-plus/pull/586
Author: @angryziber
Created: 8/25/2015
Status: ✅ Merged
Merged: 9/20/2015
Merged by: @jberkel
Base:
master← Head:restore-experience📝 Commits (5)
b5223beLet users know that we are restoring latest messages first27e56f4Make 500 the default number of (latest) messages to restore, as full restore may easily fail for people with 1000s of messagesb4d6818Run updateAllThreads() even in case of cancel so that user will see what we've done so farb6a7e11issue #585: run updateAllThreads() even in case of IMAP failure so that users will see the messages that have been restored so far7f04e84extract method to make intention more clear📊 Changes
4 files changed (+12 additions, -7 deletions)
View changed files
📝
res/values-ru/strings.xml(+1 -1)📝
res/values/strings.xml(+1 -1)📝
res/xml/preferences.xml(+1 -1)📝
src/main/java/com/zegoggles/smssync/service/RestoreTask.java(+9 -4)📄 Description
I have upgraded to Android M yesterday and had quite a few problems with restoring of my 15000+ messages (not related to Android version).
I think the restore experience can be improved by default so that more people will get it working as expected.
Reading the code I realized that messages are restored in reverse order: latest first. I assumed that the order is oldest first and that's why kept the number of restored messages to 'All' in settings. It seems that changing a couple of strings can fix that wrong assumption.
Restoring a lot of messages by default fails after at least 30 minutes with e.g. timeout of IMAP server. Most people probably will be ok with that if the latest a few thousand messages would be restored, but due to failure the restored messages are not visible (threads not updated). I propose to change the default restored count to 500 so that most people will not wait for 30 min but get at least 500 latest messages back pretty quickly. In addition, RestoreTask will now attempt to still call updateAllThreads() even in case of IMAP failure so that the restored messages already in sms.db will become visible.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.