Skip to content

Commit f81b1db

Browse files
committed
inform user when account not found
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 5603f88 commit f81b1db

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/src/main/java/it/niedermann/owncloud/notes/main/MainActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
import it.niedermann.owncloud.notes.shared.model.NavigationCategory;
119119
import it.niedermann.owncloud.notes.shared.model.NoteClickListener;
120120
import it.niedermann.owncloud.notes.shared.util.CustomAppGlideModule;
121+
import it.niedermann.owncloud.notes.shared.util.DisplayUtils;
121122
import it.niedermann.owncloud.notes.shared.util.NoteUtil;
122123
import it.niedermann.owncloud.notes.shared.util.ShareUtil;
123124
import it.niedermann.owncloud.notes.util.LinkHelper;
@@ -499,7 +500,8 @@ public void onAccountReceived(@NotNull String accountName) {
499500
if (account != null) {
500501
onAccountChosen(account);
501502
} else {
502-
Log_OC.e(TAG, "account not found");
503+
Log_OC.w(TAG, "account not found");
504+
DisplayUtils.showSnackMessage(MainActivity.this, R.string.account_not_found);
503505
}
504506
}
505507

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,4 +520,5 @@
520520
<string name="activity_sharing_details_title">Sharing Details</string>
521521
<string name="share_expires">Share expires on %1$s</string>
522522
<string name="dismiss">Dismiss</string>
523+
<string name="account_not_found">Account not found!</string>
523524
</resources>

0 commit comments

Comments
 (0)