Toast if there are no updates
When the user updates the repo and all packages are recent, the update dialog exited so fast, that some users might have thought that the repo didn't update. To notify them that no new updates were found, the user now gets a toast.
This commit is contained in:
parent
3a3a480429
commit
04f7b4a5a9
@ -217,6 +217,7 @@
|
||||
<string name="status_connecting_to_repo">Connecting to\n%1$s</string>
|
||||
<string name="status_checking_compatibility">Checking apps compatibility with your device…</string>
|
||||
<string name="status_inserting">Saving application details (%1$d%%)</string>
|
||||
<string name="repos_unchanged">No repository has any package updates</string>
|
||||
<string name="no_permissions">No permissions are used.</string>
|
||||
<string name="permissions_for_long">Permissions for version %s</string>
|
||||
<string name="showPermissions">Show permissions</string>
|
||||
|
@ -169,6 +169,7 @@ public class UpdateService extends IntentService implements ProgressListener {
|
||||
finished = true;
|
||||
} else if (resultCode == UpdateService.STATUS_COMPLETE_AND_SAME) {
|
||||
forwardEvent(EVENT_COMPLETE_AND_SAME);
|
||||
Toast.makeText(context, context.getString(R.string.repos_unchanged), Toast.LENGTH_LONG).show();
|
||||
finished = true;
|
||||
} else if (resultCode == UpdateService.STATUS_INFO) {
|
||||
forwardEvent(EVENT_INFO);
|
||||
|
Loading…
x
Reference in New Issue
Block a user