status should update whether there is msg or not
This commit is contained in:
		
							parent
							
								
									25f6499f6b
								
							
						
					
					
						commit
						36a6349b67
					
				| 
						 | 
					@ -862,13 +862,8 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
 | 
				
			||||||
        	int newTorStatus = -1;
 | 
					        	int newTorStatus = -1;
 | 
				
			||||||
            try
 | 
					            try
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
            	if (mTorServiceMsg != null && mTorServiceMsg.length()>0)
 | 
					            	if (mService != null)
 | 
				
			||||||
            	{
 | 
					                	return new Integer(mService.getStatus());
 | 
				
			||||||
                    //if the serivce is bound, query it for the curren status value (int)
 | 
					 | 
				
			||||||
                    if (mService != null)
 | 
					 | 
				
			||||||
                    	return new Integer(mService.getStatus());
 | 
					 | 
				
			||||||
                    
 | 
					 | 
				
			||||||
            	}
 | 
					 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            catch (Exception e)
 | 
					            catch (Exception e)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue