In “Encryption”, tap “Restore” under “Stored data”.
Enter your old encryption password and tap “Restore”. To restore with your recovery key, tap “Restore with recovery key”; if you had registered face or fingerprint, tap “Open with face or fingerprint”.
When “Restored.” appears, you're done. Your old notes, tasks and diary appear together with the current ones.
Notes
Once restored, the “Stored data” section disappears.
If you see “Not everything could be restored yet”, check your connection and tap “Restore” again.