Comments (5)
Thank you very much for the feedback
As we wish we would have the time to solve this unfortunately we currently don't
We hope you are still enjoying the app considering the problems
from koler.
Were back!
About the issue... could you describe more?
The issue happens with no relation to anything?
Did you change the audio settings before the call?
from koler.
Solution :
In Activity OngoingCallActivity replace code of ActionTimer
class ActionTimer {
CountDownTimer mTimer = null;
boolean mIsRejecting = true;
boolean mIsActionTimerEnable = false;
Integer oldVolume;
private void setData(long millisInFuture, boolean isRejecting) {
mIsRejecting = isRejecting;
@ColorRes int textColorRes;
@StringRes int textIndicator;
if (isRejecting) {
textColorRes = R.color.red_phone;
textIndicator = R.string.reject_timer_indicator;
} else {
textColorRes = R.color.green_phone;
textIndicator = R.string.answer_timer_indicator;
}
@ColorInt int textColor = ContextCompat.getColor(OngoingCallActivity.this, textColorRes);
mActionTimeLeftText.setTextColor(textColor);
mTimerIndicatorText.setText(textIndicator);
mTimer = new CountDownTimer(millisInFuture, REFRESH_RATE) {
Locale mLocale = Locale.getDefault();
@Override
public void onTick(long millisUntilFinished) {
int secondsUntilFinished = (int) (millisUntilFinished / 1000);
String timer = String.format(mLocale, "00:%02d", secondsUntilFinished);
mActionTimeLeftText.setText(timer);
}
@Override
public void onFinish() {
end();
}
};
}
private void start() {
mIsActionTimerEnable = true;
oldVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING);
mAudioManager.setStreamVolume(AudioManager.STREAM_RING, 0, 0);
if (mTimer != null) mTimer.start();
else Timber.w("Couldn't start action timer (timer is null)");
if (mActionTimerOverlay != null) setOverlay(mActionTimerOverlay);
}
private void cancel() {
if (mTimer != null) mTimer.cancel();
else Timber.w("Couldn't cancel action timer (timer is null)");
finalEndCommonMan();
}
private void end() {
if (mIsRejecting) endCall();
else activateCall();
finalEndCommonMan();
}
private void finalEndCommonMan() {
if (mIsActionTimerEnable){
mAudioManager.setStreamVolume(AudioManager.STREAM_RING, oldVolume, 0);
}
mIsActionTimerEnable = false;
removeOverlay();
}
}
from koler.
from koler.
Sorry for the insane delay, can u explain how does that code is responsible for fixing the issue
Does the issue happens only when using call timer?
from koler.
Related Issues (20)
- Group similar recents not working properly HOT 2
- OLED/Pitch black dark mode
- call recording
- Recent calls menu error HOT 1
- Fdroid version old HOT 1
- App crashes if screen is locked mid-call HOT 4
- Screen does not lock during call when using the ear piece. HOT 1
- Block caller
- infinit loading from ConnectYou HOT 2
- Issue with country code numbers HOT 2
- Add option to store contacts inside apps data
- Add monochrome icon HOT 1
- Add a recent contact to delete
- Do not promote "x" apps on koler
- Goes immediately to voicemail when screen is locked HOT 2
- Crash if you change theme mode several times
- Allow app to display pop-up windows
- Crash when clicking on Recents
- Clicking the dailer button crashes app on redmi 9c HOT 2
- tap on missed call notification does nothing but make it disappear then reappear at phone rebooting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koler.