Remove Firebase dependency in LinphoneActivity
This commit is contained in:
parent
b542978373
commit
2ade97dbb0
1 changed files with 0 additions and 12 deletions
|
@ -96,7 +96,6 @@ import android.widget.ListView;
|
||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
import com.google.firebase.iid.FirebaseInstanceId;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Sylvain Berfini
|
* @author Sylvain Berfini
|
||||||
|
@ -286,17 +285,6 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
||||||
LinphoneManager.getLc().setDeviceRotation(rotation);
|
LinphoneManager.getLc().setDeviceRotation(rotation);
|
||||||
}
|
}
|
||||||
mAlwaysChangingPhoneAngle = rotation;
|
mAlwaysChangingPhoneAngle = rotation;
|
||||||
|
|
||||||
if (getString(R.string.push_type).equals("firebase")) {
|
|
||||||
if (FirebaseInstanceId.getInstance() != null) {
|
|
||||||
if (LinphonePreferences.instance() != null) {
|
|
||||||
Log.i("[Push Notification] Get Token " + FirebaseInstanceId.getInstance().getToken());
|
|
||||||
LinphonePreferences.instance().setPushNotificationRegistrationID(FirebaseInstanceId.getInstance().getToken());
|
|
||||||
} else {
|
|
||||||
Log.i("[Push Notification] Can't set new token to LinphonePreferences");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initButtons() {
|
private void initButtons() {
|
||||||
|
|
Loading…
Reference in a new issue