|
@@ -69,11 +69,6 @@ class LoginActivity : BaseXActivity<ActivityLoginBinding>() {
|
|
FBLogin.login(this@LoginActivity)
|
|
FBLogin.login(this@LoginActivity)
|
|
} else {
|
|
} else {
|
|
FBLogin.login(this@LoginActivity)
|
|
FBLogin.login(this@LoginActivity)
|
|
- Toast.makeText(
|
|
|
|
- this@LoginActivity,
|
|
|
|
- getString(R.string.these_permissions_denied)+ "$deniedList",
|
|
|
|
- Toast.LENGTH_LONG
|
|
|
|
- ).show()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU){
|
|
}else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU){
|
|
@@ -86,11 +81,6 @@ class LoginActivity : BaseXActivity<ActivityLoginBinding>() {
|
|
FBLogin.login(this@LoginActivity)
|
|
FBLogin.login(this@LoginActivity)
|
|
} else {
|
|
} else {
|
|
FBLogin.login(this@LoginActivity)
|
|
FBLogin.login(this@LoginActivity)
|
|
- Toast.makeText(
|
|
|
|
- this@LoginActivity,
|
|
|
|
- getString(R.string.these_permissions_denied)+ "$deniedList",
|
|
|
|
- Toast.LENGTH_LONG
|
|
|
|
- ).show()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
@@ -103,11 +93,6 @@ class LoginActivity : BaseXActivity<ActivityLoginBinding>() {
|
|
FBLogin.login(this@LoginActivity)
|
|
FBLogin.login(this@LoginActivity)
|
|
} else {
|
|
} else {
|
|
FBLogin.login(this@LoginActivity)
|
|
FBLogin.login(this@LoginActivity)
|
|
- Toast.makeText(
|
|
|
|
- this@LoginActivity,
|
|
|
|
- getString(R.string.these_permissions_denied)+ "$deniedList",
|
|
|
|
- Toast.LENGTH_LONG
|
|
|
|
- ).show()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -131,11 +116,6 @@ class LoginActivity : BaseXActivity<ActivityLoginBinding>() {
|
|
GoogleLogin.login(this@LoginActivity)
|
|
GoogleLogin.login(this@LoginActivity)
|
|
} else {
|
|
} else {
|
|
GoogleLogin.login(this@LoginActivity)
|
|
GoogleLogin.login(this@LoginActivity)
|
|
- Toast.makeText(
|
|
|
|
- this@LoginActivity,
|
|
|
|
- getString(R.string.these_permissions_denied)+"$deniedList",
|
|
|
|
- Toast.LENGTH_LONG
|
|
|
|
- ).show()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU){
|
|
}else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU){
|
|
@@ -148,11 +128,6 @@ class LoginActivity : BaseXActivity<ActivityLoginBinding>() {
|
|
GoogleLogin.login(this@LoginActivity)
|
|
GoogleLogin.login(this@LoginActivity)
|
|
} else {
|
|
} else {
|
|
GoogleLogin.login(this@LoginActivity)
|
|
GoogleLogin.login(this@LoginActivity)
|
|
- Toast.makeText(
|
|
|
|
- this@LoginActivity,
|
|
|
|
- getString(R.string.these_permissions_denied)+"$deniedList",
|
|
|
|
- Toast.LENGTH_LONG
|
|
|
|
- ).show()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
@@ -165,11 +140,6 @@ class LoginActivity : BaseXActivity<ActivityLoginBinding>() {
|
|
GoogleLogin.login(this@LoginActivity)
|
|
GoogleLogin.login(this@LoginActivity)
|
|
} else {
|
|
} else {
|
|
GoogleLogin.login(this@LoginActivity)
|
|
GoogleLogin.login(this@LoginActivity)
|
|
- Toast.makeText(
|
|
|
|
- this@LoginActivity,
|
|
|
|
- getString(R.string.these_permissions_denied)+"$deniedList",
|
|
|
|
- Toast.LENGTH_LONG
|
|
|
|
- ).show()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -236,11 +206,6 @@ class LoginActivity : BaseXActivity<ActivityLoginBinding>() {
|
|
val account = binding.etAccount.text.toString()
|
|
val account = binding.etAccount.text.toString()
|
|
val secret = binding.etSecret.text.toString()
|
|
val secret = binding.etSecret.text.toString()
|
|
loginVm.loginByAccount(account, secret)
|
|
loginVm.loginByAccount(account, secret)
|
|
- Toast.makeText(
|
|
|
|
- this@LoginActivity,
|
|
|
|
- getString(R.string.these_permissions_denied)+" $deniedList",
|
|
|
|
- Toast.LENGTH_LONG
|
|
|
|
- ).show()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU){
|
|
}else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU){
|
|
@@ -259,11 +224,6 @@ class LoginActivity : BaseXActivity<ActivityLoginBinding>() {
|
|
val account = binding.etAccount.text.toString()
|
|
val account = binding.etAccount.text.toString()
|
|
val secret = binding.etSecret.text.toString()
|
|
val secret = binding.etSecret.text.toString()
|
|
loginVm.loginByAccount(account, secret)
|
|
loginVm.loginByAccount(account, secret)
|
|
- Toast.makeText(
|
|
|
|
- this@LoginActivity,
|
|
|
|
- getString(R.string.these_permissions_denied)+" $deniedList",
|
|
|
|
- Toast.LENGTH_LONG
|
|
|
|
- ).show()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
@@ -282,11 +242,6 @@ class LoginActivity : BaseXActivity<ActivityLoginBinding>() {
|
|
val account = binding.etAccount.text.toString()
|
|
val account = binding.etAccount.text.toString()
|
|
val secret = binding.etSecret.text.toString()
|
|
val secret = binding.etSecret.text.toString()
|
|
loginVm.loginByAccount(account, secret)
|
|
loginVm.loginByAccount(account, secret)
|
|
- Toast.makeText(
|
|
|
|
- this@LoginActivity,
|
|
|
|
- getString(R.string.these_permissions_denied)+" $deniedList",
|
|
|
|
- Toast.LENGTH_LONG
|
|
|
|
- ).show()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|