Просмотр исходного кода

Change transitions and update back call color

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 6 лет назад
Родитель
Сommit
879098ca8c

+ 4 - 2
app/src/main/java/com/nextcloud/talk/controllers/CallNotificationController.java

@@ -136,8 +136,10 @@ public class CallNotificationController extends BaseController {
         originalBundle.putString(BundleKeys.KEY_ROOM_TOKEN, currentRoom.getToken());
 
         List<RouterTransaction> routerTransactions = new ArrayList<>();
-        routerTransactions.add(RouterTransaction.with(new MagicBottomNavigationController()));
-        routerTransactions.add(RouterTransaction.with(new ChatController(originalBundle)));
+        routerTransactions.add(RouterTransaction.with(new MagicBottomNavigationController())
+                .popChangeHandler(new HorizontalChangeHandler()).pushChangeHandler(new HorizontalChangeHandler()));
+        routerTransactions.add(RouterTransaction.with(new ChatController(originalBundle)).popChangeHandler(new
+                HorizontalChangeHandler()).pushChangeHandler(new HorizontalChangeHandler()));
         getRouter().setBackstack(routerTransactions, new HorizontalChangeHandler());
     }
 

+ 1 - 1
app/src/main/res/layout/activity_call.xml

@@ -32,7 +32,7 @@
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:animateLayoutChanges="true"
-        android:background="#000000"
+        android:background="@color/grey950"
         android:orientation="vertical">
     </LinearLayout>