Code improvement.

This commit is contained in:
Ghazi Triki 2018-04-17 16:07:12 +01:00
parent cfd290e196
commit 4fc4e177b7
11 changed files with 16 additions and 33 deletions

View File

@ -73,7 +73,7 @@
padding: 22.50;
}
main|ExitView, main|DisconnectView, main|UserInactivityView {
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
gap: 22.50;
padding: 22.50;
}
@ -121,9 +121,6 @@
main|MobilePopUp {
cornerRadius: 6.00;
fontSize: 16.50;
}
main|MobilePopUp {
padding: 9.00;
}

View File

@ -73,7 +73,7 @@
padding: 11.250;
}
main|ExitView, main|DisconnectView, main|UserInactivityView {
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
gap: 11.250;
padding: 11.250;
}
@ -121,9 +121,6 @@
main|MobilePopUp {
cornerRadius: 3.000;
fontSize: 8.250;
}
main|MobilePopUp {
padding: 4.500;
}

View File

@ -73,7 +73,7 @@
padding: 15.0;
}
main|ExitView, main|DisconnectView, main|UserInactivityView {
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
gap: 15.0;
padding: 15.0;
}
@ -121,9 +121,6 @@
main|MobilePopUp {
cornerRadius: 4.0;
fontSize: 11.0;
}
main|MobilePopUp {
padding: 6.0;
}

View File

@ -61,7 +61,7 @@
padding: 30;
}
main|ExitView, main|DisconnectView, main|UserInactivityView {
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
gap : 30;
padding : 30;
}
@ -109,9 +109,6 @@
main|MobilePopUp {
cornerRadius : 8;
fontSize : 22;
}
main|MobilePopUp {
padding : 12;
}

View File

@ -73,7 +73,7 @@
padding: 45.0;
}
main|ExitView, main|DisconnectView, main|UserInactivityView {
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
gap: 45.0;
padding: 45.0;
}
@ -121,9 +121,6 @@
main|MobilePopUp {
cornerRadius: 12.0;
fontSize: 33.0;
}
main|MobilePopUp {
padding: 18.0;
}

View File

@ -73,7 +73,7 @@
padding: 60;
}
main|ExitView, main|DisconnectView, main|UserInactivityView {
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
gap: 60;
padding: 60;
}
@ -121,9 +121,6 @@
main|MobilePopUp {
cornerRadius: 16;
fontSize: 44;
}
main|MobilePopUp {
padding: 24;
}

View File

@ -24,8 +24,8 @@ package org.bigbluebutton.air.main {
import org.bigbluebutton.air.main.views.PagesNavigatorViewMediator;
import org.bigbluebutton.air.main.views.TopToolbarBase;
import org.bigbluebutton.air.main.views.TopToolbarMediator;
import org.bigbluebutton.air.main.views.UserInactivityView;
import org.bigbluebutton.air.main.views.UserInactivityViewMediator;
import org.bigbluebutton.air.main.views.UserInactivityPopUp;
import org.bigbluebutton.air.main.views.UserInactivityPopUpMediator;
import robotlegs.bender.extensions.matching.TypeMatcher;
import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap;
@ -64,7 +64,7 @@ package org.bigbluebutton.air.main {
mediatorMap.map(ExitView).toMediator(ExitViewMediator);
mediatorMap.map(DisconnectView).toMediator(DisconnectViewMediator);
mediatorMap.map(MainView).toMediator(MainViewMediator);
mediatorMap.map(UserInactivityView).toMediator(UserInactivityViewMediator);
mediatorMap.map(UserInactivityPopUp).toMediator(UserInactivityPopUpMediator);
}
/**

View File

@ -3,7 +3,7 @@ package org.bigbluebutton.air.main.commands {
import spark.components.Application;
import org.bigbluebutton.air.main.views.UserInactivityView;
import org.bigbluebutton.air.main.views.UserInactivityPopUp;
import robotlegs.bender.bundles.mvcs.Command;
@ -14,7 +14,7 @@ package org.bigbluebutton.air.main.commands {
override public function execute():void {
trace("RECEIVED INACTIVITY TIMER MESSAGE responseDuration=" + responseDuration);
var userInactivityView:UserInactivityView = new UserInactivityView();
var userInactivityView:UserInactivityPopUp = new UserInactivityPopUp();
userInactivityView.text = "Your client is going to close in " + responseDuration.toString() + " seconds";
userInactivityView.open(Application(FlexGlobals.topLevelApplication), true);
}

View File

@ -4,14 +4,14 @@ package org.bigbluebutton.air.main.views {
import spark.layouts.HorizontalLayout;
import spark.layouts.VerticalLayout;
public class UserInactivityView extends MobilePopUp {
public class UserInactivityPopUp extends MobilePopUp {
private var _okButton:Button;
public function get okButton():Button {
return _okButton;
}
public function UserInactivityView() {
public function UserInactivityPopUp() {
super();
_okButton = new Button();

View File

@ -7,10 +7,10 @@ package org.bigbluebutton.air.main.views
import robotlegs.bender.bundles.mvcs.Mediator;
public class UserInactivityViewMediator extends Mediator
public class UserInactivityPopUpMediator extends Mediator
{
[Inject]
public var view:UserInactivityView;
public var view:UserInactivityPopUp;
[Inject]
public var userInactivityTimerResponseSignal:UserInactivityTimerResponseSignal;

View File

@ -59,6 +59,7 @@ package org.bigbluebutton.air.poll.views {
public override function destroy():void {
meetingData.polls.pollChangeSignal.remove(onPollChange);
view.removeEventListener(MouseEvent.CLICK, viewMouseEventHandler);
view.stage.removeEventListener(StageOrientationEvent.ORIENTATION_CHANGE, onStageOrientation);
}
}