Remove version checks for API 21 devices

This commit is contained in:
cketti 2019-11-19 15:24:17 +01:00
parent 316ea451b1
commit a097c7761a
2 changed files with 2 additions and 9 deletions

View file

@ -5,7 +5,6 @@ import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.IntentSender.SendIntentException
import android.os.Build
import android.os.Bundle
import android.transition.TransitionInflater
import android.transition.TransitionManager
@ -139,10 +138,8 @@ class AutocryptKeyTransferActivity : K9Activity() {
}
private fun setupSceneTransition() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
val transition = TransitionInflater.from(this).inflateTransition(R.transition.transfer_transitions)
TransitionManager.beginDelayedTransition(findViewById(android.R.id.content), transition)
}
val transition = TransitionInflater.from(this).inflateTransition(R.transition.transfer_transitions)
TransitionManager.beginDelayedTransition(findViewById(android.R.id.content), transition)
}
fun finishAsCancelled() {

View file

@ -132,10 +132,6 @@ public class ParcelFileDescriptorUtil {
}
private static boolean isIOExceptionCausedByEPIPE(IOException e) {
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.LOLLIPOP) {
return e.getMessage().contains("EPIPE");
}
Throwable cause = e.getCause();
return cause instanceof ErrnoException && ((ErrnoException) cause).errno == OsConstants.EPIPE;
}