|  | @@ -1,31 +1,28 @@
 | 
	
		
			
				|  |  |  package com.vpn.fastestvpnservice.activities
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import android.content.Intent
 | 
	
		
			
				|  |  | +import android.graphics.drawable.ColorDrawable
 | 
	
		
			
				|  |  | +import android.graphics.drawable.GradientDrawable
 | 
	
		
			
				|  |  |  import android.os.Bundle
 | 
	
		
			
				|  |  |  import android.text.InputType
 | 
	
		
			
				|  |  |  import android.util.Log
 | 
	
		
			
				|  |  |  import android.view.View
 | 
	
		
			
				|  |  | -import android.widget.Toast
 | 
	
		
			
				|  |  | -import androidx.activity.enableEdgeToEdge
 | 
	
		
			
				|  |  | +import android.view.Window
 | 
	
		
			
				|  |  |  import androidx.appcompat.app.AppCompatActivity
 | 
	
		
			
				|  |  | -import androidx.core.view.ViewCompat
 | 
	
		
			
				|  |  | -import androidx.core.view.WindowInsetsCompat
 | 
	
		
			
				|  |  |  import androidx.lifecycle.Observer
 | 
	
		
			
				|  |  |  import com.google.firebase.BuildConfig
 | 
	
		
			
				|  |  | -import com.vpn.fastestvpnservice.R
 | 
	
		
			
				|  |  |  import com.vpn.fastestvpnservice.beans.DataResponse
 | 
	
		
			
				|  |  |  import com.vpn.fastestvpnservice.beans.UserResponse
 | 
	
		
			
				|  |  |  import com.vpn.fastestvpnservice.databinding.ActivityLoginTvBinding
 | 
	
		
			
				|  |  | -import com.vpn.fastestvpnservice.databinding.FragmentLoginBinding
 | 
	
		
			
				|  |  | -import com.vpn.fastestvpnservice.fragments.TvHomeFragment
 | 
	
		
			
				|  |  |  import com.vpn.fastestvpnservice.helpers.BasePreferenceHelper
 | 
	
		
			
				|  |  | -import com.vpn.fastestvpnservice.utils.SnackBarUtils
 | 
	
		
			
				|  |  |  import com.vpn.fastestvpnservice.utils.StaticMethods
 | 
	
		
			
				|  |  |  import com.vpn.fastestvpnservice.viewmodels.LoginViewModel
 | 
	
		
			
				|  |  |  import com.vpn.fastestvpnservice.views.CustomValidation
 | 
	
		
			
				|  |  |  import com.vpn.fastestvpnservice.widgets.SimpleAppWidget
 | 
	
		
			
				|  |  | +import com.vpn.fastestvpnservice.R
 | 
	
		
			
				|  |  |  import de.blinkt.openvpn.core.App
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  class LoginActivityTV : AppCompatActivity() {
 | 
	
		
			
				|  |  |      lateinit var loginViewModel: LoginViewModel
 | 
	
		
			
				|  |  |      var isPasswordVisible = false
 | 
	
	
		
			
				|  | @@ -37,6 +34,13 @@ class LoginActivityTV : AppCompatActivity() {
 | 
	
		
			
				|  |  |          super.onCreate(savedInstanceState)
 | 
	
		
			
				|  |  |  //        enableEdgeToEdge()
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        val colors = intArrayOf(
 | 
	
		
			
				|  |  | +            getResources().getColor(R.color.gradientblues),
 | 
	
		
			
				|  |  | +            getResources().getColor(R.color.gradientbluee)
 | 
	
		
			
				|  |  | +        )
 | 
	
		
			
				|  |  | +        val gradientDrawable = GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, colors)
 | 
	
		
			
				|  |  | +        val window: Window = this.window
 | 
	
		
			
				|  |  | +        window.setBackgroundDrawable(gradientDrawable)
 | 
	
		
			
				|  |  |          loginBinding = ActivityLoginTvBinding.inflate(layoutInflater)
 | 
	
		
			
				|  |  |          val view = loginBinding.root
 | 
	
		
			
				|  |  |          setContentView(view)
 |