Iconified toolbar when changing account
This commit is contained in:
parent
0813d65bb8
commit
c417d8bc12
|
@ -710,6 +710,9 @@ public class MainActivity extends AppCompatActivity
|
|||
if( tabLayout.getTabAt(0) != null)
|
||||
//noinspection ConstantConditions
|
||||
tabLayout.getTabAt(0).select();
|
||||
if( !toolbar_search.isIconified() ) {
|
||||
toolbar_search.setIconified(true);
|
||||
}
|
||||
matchingIntent = true;
|
||||
}
|
||||
}else if( Intent.ACTION_SEND.equals(action) && type != null ) {
|
||||
|
|
|
@ -39,7 +39,6 @@ import android.support.v7.app.AlertDialog;
|
|||
import android.support.v7.widget.PopupMenu;
|
||||
import android.support.v7.widget.SearchView;
|
||||
import android.support.v7.widget.SwitchCompat;
|
||||
import android.util.Log;
|
||||
import android.util.Patterns;
|
||||
import android.view.Gravity;
|
||||
import android.view.LayoutInflater;
|
||||
|
@ -714,6 +713,9 @@ public class MainActivity extends AppCompatActivity
|
|||
if( tabLayout.getTabAt(0) != null)
|
||||
//noinspection ConstantConditions
|
||||
tabLayout.getTabAt(0).select();
|
||||
if( !toolbar_search.isIconified() ) {
|
||||
toolbar_search.setIconified(true);
|
||||
}
|
||||
matchingIntent = true;
|
||||
}
|
||||
}else if( Intent.ACTION_SEND.equals(action) && type != null ) {
|
||||
|
|
Loading…
Reference in New Issue