Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ddd5e64 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the statusbar would close

When a the alarm notification was shown, we sent a broadcast
to hide all panels, but the notification would become heads
uped and therefore invisible. We now hide all panels when
showing the alarm activity.

Bug: 20322055
Change-Id: Iab836643464d46b57a11ad015bbbbabf9bd1686c
parent f3f83ac8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -175,6 +175,9 @@ public class AlarmActivity extends AppCompatActivity
        // Hide navigation bar to minimize accidental tap on Home key
        hideNavigationBar();

        // Close dialogs and window shade, so this is fully visible
        sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));

        // In order to allow tablets to freely rotate and phones to stick
        // with "nosensor" (use default device orientation) we have to have
        // the manifest start with an orientation of unspecified" and only limit
+0 −3
Original line number Diff line number Diff line
@@ -173,9 +173,6 @@ public final class AlarmNotifications {
        LogUtils.v("Displaying alarm notification for alarm instance: " + instance.mId);
        NotificationManagerCompat nm = NotificationManagerCompat.from(context);

        // Close dialogs and window shade, so this will display
        context.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));

        Resources resources = context.getResources();
        NotificationCompat.Builder notification = new NotificationCompat.Builder(context)
                .setContentTitle(instance.getLabelOrDefault(context))