Merge pull request #3366 from ByteHamster/add-feed-improvements
Add feed improvements
This commit is contained in:
commit
0ae092be3a
@ -70,11 +70,8 @@ public class AddFeedFragment extends Fragment {
|
|||||||
|
|
||||||
combinedFeedSearchBox = root.findViewById(R.id.combinedFeedSearchBox);
|
combinedFeedSearchBox = root.findViewById(R.id.combinedFeedSearchBox);
|
||||||
combinedFeedSearchBox.setOnEditorActionListener((v, actionId, event) -> {
|
combinedFeedSearchBox.setOnEditorActionListener((v, actionId, event) -> {
|
||||||
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
|
|
||||||
performSearch();
|
performSearch();
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
return false;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
|
android:focusableInTouchMode="true"
|
||||||
android:padding="8dp">
|
android:padding="8dp">
|
||||||
|
|
||||||
<android.support.v7.widget.CardView
|
<android.support.v7.widget.CardView
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package de.danoeh.antennapod.core.util.exception;
|
package de.danoeh.antennapod.core.util.exception;
|
||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import de.danoeh.antennapod.core.gpoddernet.GpodnetServiceException;
|
||||||
import io.reactivex.exceptions.UndeliverableException;
|
import io.reactivex.exceptions.UndeliverableException;
|
||||||
import io.reactivex.plugins.RxJavaPlugins;
|
import io.reactivex.plugins.RxJavaPlugins;
|
||||||
|
|
||||||
@ -13,16 +14,21 @@ public class RxJavaErrorHandlerSetup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void setupRxJavaErrorHandler() {
|
public static void setupRxJavaErrorHandler() {
|
||||||
RxJavaPlugins.setErrorHandler(e -> {
|
RxJavaPlugins.setErrorHandler(originalCause -> {
|
||||||
|
Throwable e = originalCause;
|
||||||
if (e instanceof UndeliverableException) {
|
if (e instanceof UndeliverableException) {
|
||||||
e = e.getCause();
|
e = e.getCause();
|
||||||
}
|
}
|
||||||
|
if (e instanceof GpodnetServiceException) {
|
||||||
|
e = e.getCause();
|
||||||
|
}
|
||||||
if (e instanceof InterruptedException || e instanceof InterruptedIOException) {
|
if (e instanceof InterruptedException || e instanceof InterruptedIOException) {
|
||||||
// fine, some blocking code was interrupted by a dispose call
|
// fine, some blocking code was interrupted by a dispose call
|
||||||
Log.d("RxJavaErrorHandler", "Ignored exception: " + Log.getStackTraceString(e));
|
Log.d("RxJavaErrorHandler", "Ignored exception: " + Log.getStackTraceString(originalCause));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Thread.currentThread().getUncaughtExceptionHandler().uncaughtException(Thread.currentThread(), e);
|
Thread.currentThread().getUncaughtExceptionHandler()
|
||||||
|
.uncaughtException(Thread.currentThread(), originalCause);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user