Skip to content

Commit

Permalink
Apply requested changes from #11523
Browse files Browse the repository at this point in the history
Signed-off-by: ZetaTom <[email protected]>
  • Loading branch information
ZetaTom committed Jun 20, 2023
1 parent 94cfe5a commit 9124ae8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,12 @@ protected void onPreExecute() {

@Override
protected String doInBackground(Void... voids) {
Context context = mWeakContext.get();
// fetch private/public key
// if available
// - store public key
// - decrypt private key, store unencrypted private key in database

Context context = mWeakContext.get();
GetPublicKeyOperation publicKeyOperation = new GetPublicKeyOperation();
if (user != null) {
RemoteOperationResult<String> publicKeyResult = publicKeyOperation.execute(user, context);
Expand Down Expand Up @@ -354,6 +354,7 @@ protected String doInBackground(Void... voids) {
@Override
protected void onPostExecute(String privateKey) {
super.onPostExecute(privateKey);

Context context = mWeakContext.get();
if (context == null) {
Log_OC.e(TAG, "Context lost after fetching private keys.");
Expand Down

0 comments on commit 9124ae8

Please sign in to comment.