Fixed notification view groups

This commit is contained in:
M66B 2022-06-10 13:01:12 +02:00
parent c2552cd744
commit 6107511d94
2 changed files with 16 additions and 5 deletions

View File

@ -111,7 +111,8 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
private TextView tvNoChannels;
private Group grpChannel;
private Group grpNotification;
private Group grpProperties;
private Group grpBackground;
private final static String[] RESET_OPTIONS = new String[]{
"notify_newest_first",
@ -191,7 +192,8 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
tvNoChannels = view.findViewById(R.id.tvNoChannels);
grpChannel = view.findViewById(R.id.grpChannel);
grpNotification = view.findViewById(R.id.grpNotification);
grpProperties = view.findViewById(R.id.grpProperties);
grpBackground = view.findViewById(R.id.grpBackground);
setOptions();
@ -586,7 +588,10 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
tvNoChannels.setVisibility(Build.VERSION.SDK_INT < Build.VERSION_CODES.O ? View.VISIBLE : View.GONE);
grpChannel.setVisibility(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O ? View.VISIBLE : View.GONE);
grpNotification.setVisibility(
grpProperties.setVisibility(
Build.VERSION.SDK_INT < Build.VERSION_CODES.O || BuildConfig.DEBUG
? View.VISIBLE : View.GONE);
grpBackground.setVisibility(
Build.VERSION.SDK_INT < Build.VERSION_CODES.O || BuildConfig.DEBUG
? View.VISIBLE : View.GONE);

View File

@ -415,10 +415,10 @@
app:constraint_referenced_ids="tvManageHint,btnManageDefault,tvManageDefaultHint,btnManageService,tvManageServiceHint" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpNotification"
android:id="@+id/grpProperties"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="swBackground,tvBackgroundHint,swLight,btnSound" />
app:constraint_referenced_ids="swLight,btnSound" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
@ -827,6 +827,12 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tvNoGrouping" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpBackground"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="swBackground,tvBackgroundHint" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>