Search in sources :

Example 6 with Group

use of androidx.constraintlayout.widget.Group in project Signal-Android by signalapp.

the class MessageRequestsBottomView method setActiveInactiveGroups.

private void setActiveInactiveGroups(@NonNull Group activeGroup, @NonNull Group... inActiveGroups) {
    int initialVisibility = this.activeGroup != null ? this.activeGroup.getVisibility() : VISIBLE;
    this.activeGroup = activeGroup;
    for (Group inactive : inActiveGroups) {
        inactive.setVisibility(GONE);
    }
    activeGroup.setVisibility(initialVisibility);
}
Also used : Group(androidx.constraintlayout.widget.Group)

Aggregations

Group (androidx.constraintlayout.widget.Group)6 View (android.view.View)4 TextView (android.widget.TextView)4 Manifest (android.Manifest)2 ActivityNotFoundException (android.content.ActivityNotFoundException)2 Intent (android.content.Intent)2 LocationManager (android.location.LocationManager)2 WifiManager (android.net.wifi.WifiManager)2 Bundle (android.os.Bundle)2 Settings (android.provider.Settings)2 SpannableString (android.text.SpannableString)2 LinkMovementMethod (android.text.method.LinkMovementMethod)2 Toast (android.widget.Toast)2 OnBackPressedCallback (androidx.activity.OnBackPressedCallback)2 NonNull (androidx.annotation.NonNull)2 Nullable (androidx.annotation.Nullable)2 StringRes (androidx.annotation.StringRes)2 AlertDialog (androidx.appcompat.app.AlertDialog)2 Toolbar (androidx.appcompat.widget.Toolbar)2 ContextCompat (androidx.core.content.ContextCompat)2