mirror of https://github.com/M66B/FairEmail.git
Fixed notification view groups
This commit is contained in:
parent
c2552cd744
commit
6107511d94
|
@ -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);
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue