| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -14,20 +14,17 @@ class ReplaceEditViewModel(application: Application) : BaseViewModel(application | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        execute { | 
					 | 
					 | 
					 | 
					        execute { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            val id = intent.getLongExtra("id", -1) | 
					 | 
					 | 
					 | 
					            val id = intent.getLongExtra("id", -1) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            if (id > 0) { | 
					 | 
					 | 
					 | 
					            if (id > 0) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                App.db.replaceRuleDao().findById(id)?.let { | 
					 | 
					 | 
					 | 
					                replaceRule = App.db.replaceRuleDao().findById(id) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    replaceRule = it | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            } else { | 
					 | 
					 | 
					 | 
					            } else { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                val pattern = intent.getStringExtra("pattern") ?: "" | 
					 | 
					 | 
					 | 
					                val pattern = intent.getStringExtra("pattern") ?: "" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                val isRegex = intent.getBooleanExtra("isRegex", false) | 
					 | 
					 | 
					 | 
					                val isRegex = intent.getBooleanExtra("isRegex", false) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                val scope = intent.getStringExtra("scope") | 
					 | 
					 | 
					 | 
					                val scope = intent.getStringExtra("scope") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                val rule = ReplaceRule( | 
					 | 
					 | 
					 | 
					                replaceRule = ReplaceRule( | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    name = pattern, | 
					 | 
					 | 
					 | 
					                    name = pattern, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    pattern = pattern, | 
					 | 
					 | 
					 | 
					                    pattern = pattern, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    isRegex = isRegex, | 
					 | 
					 | 
					 | 
					                    isRegex = isRegex, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    scope = scope | 
					 | 
					 | 
					 | 
					                    scope = scope | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                ) | 
					 | 
					 | 
					 | 
					                ) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                replaceRule = rule | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            } | 
					 | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }.onFinally { | 
					 | 
					 | 
					 | 
					        }.onFinally { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            replaceRule?.let { | 
					 | 
					 | 
					 | 
					            replaceRule?.let { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |