Display action bar in few activities

I created a custom theme style with no action bar: <style name=”AppTheme” parent=”Theme.AppCompat.Light.NoActionBar”> <!– Customize your theme here. –> <item name=”colorPrimary”>@color/colorPrimary</item> <item name=”colorPrimaryDark”>@color/colorPrimaryDark</item> <item name=”colorAccent”>@color/colorAccent</item> </style> And in my manifest I use this style: <application android:largeHeap=”true” android:name=”androidx.multidex.MultiDexApplication” android:allowBackup=”true” android:icon=”@drawable/icon” android:label=”@string/app_name” android:supportsRtl=”true” android:theme=”@style/AppTheme”> That way there is no action bar in all of my activites. However…

Details

Why observable behavior eager when returning it from a rest endpoint?

@GetMapping(value = “/list”, produces = “application/json; charset=utf-8”) public Observable<List<Person>> allPerson(){ return Observable .range(0, Integer.MAX_VALUE) .map(this::listAllPerson) .takeWhile(list -> !list.isEmpty()); } The Observables are lazy but when returning an observable from a rest endpoint, for example, in a spring-boot app it behavior eager even without any subscription. How and why? This question may look stupid but I…

Details