1
0
mirror of https://github.com/etesync/android synced 2025-02-22 12:32:03 +00:00

Account settings: disable the account dashboard link until we implement it.

This commit is contained in:
Tom Hacohen 2020-09-09 15:51:05 +03:00
parent 52dcd459d9
commit d260d7699a

View File

@ -17,6 +17,7 @@ import android.os.Bundle
import android.provider.CalendarContract
import android.text.TextUtils
import android.view.MenuItem
import android.widget.Toast
import androidx.core.app.NavUtils
import androidx.fragment.app.Fragment
import androidx.loader.app.LoaderManager
@ -91,7 +92,7 @@ class AccountSettingsFragment() : PreferenceFragmentCompat(), LoaderManager.Load
// Category: dashboard
val prefManageAccount = findPreference("manage_account")
prefManageAccount.onPreferenceClickListener = Preference.OnPreferenceClickListener { _ ->
WebViewActivity.openUrl(activity!!, Constants.dashboard.buildUpon().appendQueryParameter("email", account.name).build())
Toast.makeText(requireContext(), "Not yet supported", Toast.LENGTH_LONG).show()
true
}