Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
AccountManager
Commits
0ef94b59
Commit
0ef94b59
authored
Jun 28, 2022
by
Fahim Salam Chowdhury
👽
Browse files
5560-rnd_handle_mail_account_by_accountManager_in_background
parent
e1ec9119
Pipeline
#199819
passed with stage
in 3 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/accountmanager/ui/AccountsActivity.kt
View file @
0ef94b59
...
...
@@ -9,6 +9,7 @@
package
foundation.e.accountmanager.ui
import
android.accounts.AccountManager
import
android.content.ComponentName
import
android.content.ContentResolver
import
android.content.Intent
import
android.content.SyncStatusObserver
...
...
@@ -44,6 +45,12 @@ class AccountsActivity: AppCompatActivity(), NavigationView.OnNavigationItemSele
super
.
onCreate
(
savedInstanceState
)
settings
=
Settings
.
getInstance
(
this
)
val
intent
=
Intent
()
intent
.
action
=
"foundation.e.accountmanager.account.create"
intent
.
addFlags
(
Intent
.
FLAG_INCLUDE_STOPPED_PACKAGES
)
intent
.
component
=
ComponentName
(
"foundation.e.mail"
,
"com.fsck.k9.OnAccountCreationReceiver"
)
applicationContext
.
sendBroadcast
(
intent
)
setContentView
(
R
.
layout
.
activity_accounts
)
setSupportActionBar
(
toolbar
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment