mirror of
https://codeberg.org/NextPush/nextpush-android.git
synced 2025-01-14 02:45:49 +01:00
Toast when nextcloud app is not found
This commit is contained in:
parent
b787b0f9b8
commit
25d8cf397e
@ -2,6 +2,7 @@ package org.unifiedpush.distributor.nextpush.account
|
||||
|
||||
import android.content.Context
|
||||
import android.util.Log
|
||||
import android.widget.Toast
|
||||
import com.nextcloud.android.sso.exceptions.NextcloudFilesAppAccountNotFoundException
|
||||
import com.nextcloud.android.sso.exceptions.NoCurrentAccountSelectedException
|
||||
import org.unifiedpush.distributor.nextpush.utils.TAG
|
||||
@ -59,7 +60,12 @@ object Account {
|
||||
account = this
|
||||
}
|
||||
} catch (e: NextcloudFilesAppAccountNotFoundException) {
|
||||
Log.w(TAG, "Nextcloud application is not found")
|
||||
Toast.makeText(
|
||||
context,
|
||||
"Nextcloud application not found",
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
Log.w(TAG, "Nextcloud application not found")
|
||||
null
|
||||
} catch (e: NoCurrentAccountSelectedException) {
|
||||
if (uninitialized) {
|
||||
|
Loading…
Reference in New Issue
Block a user