Change color for providers text

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-12-18 23:31:18 +01:00
parent b47a736763
commit c445edaa6e
11 changed files with 22 additions and 27 deletions

View file

@ -112,25 +112,22 @@ import pub.devrel.easypermissions.AfterPermissionGranted;
@AutoInjector(NextcloudTalkApplication.class)
public class CallActivity extends AppCompatActivity {
private static final String TAG = "CallActivity";
private static final String[] PERMISSIONS_CALL = {
android.Manifest.permission.CAMERA,
android.Manifest.permission.RECORD_AUDIO
};
@BindView(R.id.pip_video_view)
SurfaceViewRenderer pipVideoView;
@BindView(R.id.full_screen_surface_view)
SurfaceViewRenderer fullScreenVideoView;
@BindView(R.id.relative_layout)
RelativeLayout relativeLayout;
@BindView(R.id.remote_renderers_layout)
LinearLayout remoteRenderersLayout;
@Inject
NcApi ncApi;
@Inject
EventBus eventBus;
PeerConnectionFactory peerConnectionFactory;
MediaConstraints audioConstraints;
MediaConstraints videoConstraints;
@ -151,19 +148,11 @@ public class CallActivity extends AppCompatActivity {
private String roomToken;
private UserEntity userEntity;
private String callSession;
private VideoCapturer videoCapturerAndroid;
private MediaStream localMediaStream;
private String credentials;
private List<MagicPeerConnectionWrapper> magicPeerConnectionWrapperList = new ArrayList<>();
private static final String[] PERMISSIONS_CALL = {
android.Manifest.permission.CAMERA,
android.Manifest.permission.RECORD_AUDIO
};
private static int getSystemUiVisibility() {
int flags = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN;
flags |= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;

View file

@ -163,6 +163,7 @@ public interface NcApi {
@GET
Observable<SignalingSettingsOverall> getSignalingSettings(@Header("Authorization") String authorization, @Url
String url);
/*
QueryMap items are as follows:
- "messages" : "message"

View file

@ -150,6 +150,7 @@ public class ServerSelectionController extends BaseController {
textFieldBoxes.getEndIconImageButton().setAlpha(0.5f);
}
}
private void checkServerAndProceed() {
dispose();

View file

@ -117,6 +117,7 @@ public class RestModule {
CookieManager provideCookieManager() {
return new CookieManager();
}
@Provides
@Singleton
Cache provideCache() {

View file

@ -26,15 +26,14 @@ import lombok.Data;
@Data
public class PeerConnectionEvent {
public enum PeerConnectionEventType {
CLOSE_PEER, SENSOR_FAR, SENSOR_NEAR
}
private final PeerConnectionEventType peerConnectionEventType;
private final String sessionId;
public PeerConnectionEvent(PeerConnectionEventType peerConnectionEventType, @Nullable String sessionId) {
this.peerConnectionEventType = peerConnectionEventType;
this.sessionId = sessionId;
}
public enum PeerConnectionEventType {
CLOSE_PEER, SENSOR_FAR, SENSOR_NEAR
}
}

View file

@ -48,8 +48,8 @@ import java.util.List;
public class MagicPeerConnectionWrapper {
private static String TAG = "MagicPeerConnectionWrapper";
private PeerConnection peerConnection;
List<IceCandidate> iceCandidates = new ArrayList<>();
private PeerConnection peerConnection;
private List<PeerConnection.IceServer> iceServers;
private String sessionId;
private String localSession;

View file

@ -75,7 +75,9 @@ public class MagicWebRTCUtils {
return joinString(Arrays.asList(lines), "\r\n", true /* delimiterAtEnd */);
}
/** Returns the line number containing "m=audio|video", or -1 if no such line exists. */
/**
* Returns the line number containing "m=audio|video", or -1 if no such line exists.
*/
private static int findMediaDescriptionLine(boolean isAudio, String[] sdpLines) {
final String mediaDescription = isAudio ? "m=audio " : "m=video ";
for (int i = 0; i < sdpLines.length; ++i) {

View file

@ -90,6 +90,6 @@
android:text="@string/nc_get_from_provider"
android:textAlignment="center"
android:textAllCaps="true"
android:textColor="@color/nc_white_color_complete"/>
android:textColor="@color/nc_light_blue_color"/>
</RelativeLayout>

View file

@ -7,5 +7,7 @@
<color name="nc_darkRed">#D32F2F</color>
<color name="nc_white_color">@color/per70white</color>
<color name="nc_white_color_complete">#FFFFFF</color>
<color name="nc_light_blue_color">#7fC0E3</color>
</resources>