mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	
							parent
							
								
									34b3d1ae9e
								
							
						
					
					
						commit
						9e157a8a12
					
				
					 1 changed files with 21 additions and 21 deletions
				
			
		|  | @ -426,6 +426,27 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener { | |||
|         app.initClient(this) | ||||
|         val settingsManager = PreferenceManager.getDefaultSharedPreferences(this) | ||||
| 
 | ||||
|         loadThemes(this) | ||||
|         updateLocale() | ||||
|         super.onCreate(savedInstanceState) | ||||
|         try { | ||||
|             if (isCastApiAvailable()) { | ||||
|                 mSessionManager = CastContext.getSharedInstance(this).sessionManager | ||||
|             } | ||||
|         } catch (e: Exception) { | ||||
|             logError(e) | ||||
|         } | ||||
| 
 | ||||
|         window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN) | ||||
| 
 | ||||
|         if (isTvSettings()) { | ||||
|             setContentView(R.layout.activity_main_tv) | ||||
|         } else { | ||||
|             setContentView(R.layout.activity_main) | ||||
|         } | ||||
| 
 | ||||
|         changeStatusBarState(isEmulatorSettings()) | ||||
| 
 | ||||
|         if (settingsManager.getBoolean(getString(R.string.auto_update_plugins_key), true)) { | ||||
|             PluginManager.updateAllOnlinePluginsAndLoadThem(this) | ||||
|         } else { | ||||
|  | @ -485,27 +506,6 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener { | |||
|             logError(e) | ||||
|         } | ||||
| 
 | ||||
|         loadThemes(this) | ||||
|         updateLocale() | ||||
|         super.onCreate(savedInstanceState) | ||||
|         try { | ||||
|             if (isCastApiAvailable()) { | ||||
|                 mSessionManager = CastContext.getSharedInstance(this).sessionManager | ||||
|             } | ||||
|         } catch (e: Exception) { | ||||
|             logError(e) | ||||
|         } | ||||
| 
 | ||||
|         window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN) | ||||
| 
 | ||||
|         if (isTvSettings()) { | ||||
|             setContentView(R.layout.activity_main_tv) | ||||
|         } else { | ||||
|             setContentView(R.layout.activity_main) | ||||
|         } | ||||
| 
 | ||||
|         changeStatusBarState(isEmulatorSettings()) | ||||
| 
 | ||||
|         //  val navView: BottomNavigationView = findViewById(R.id.nav_view) | ||||
|         setUpBackup() | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue