=ARRAYFORMULA(FILTER('Responses'!D:D, 'Responses'!C:C="April 30 - May 1")&" "&(FILTER('Responses'!E:E, 'Responses'!C:C="April 30 - May 1")&" - "&(FILTER('Responses'!F:F, 'Responses'!C:C="April 30 - May 1"))))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo Set up wifi connect thru ADB | |
pause | |
adb tcpip 5555 | |
echo Waiting for device to initialize | |
timeout 3 | |
FOR /F "tokens=2" %%G IN ('adb shell ip addr show wlan0 ^|find "inet "') DO set ipfull=%%G | |
FOR /F "tokens=1 delims=/" %%G in ("%ipfull%") DO set ip=%%G | |
echo Connecting to device with IP %ip%... | |
adb connect %ip%:5555 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adapted from https://gist.github.com/Kishanjvaghela/67c42f8f32efaa2fadb682bc980e9280#gistcomment-2860109 | |
// Thanks to https://github.com/boberproduction, https://github.com/Kishanjvaghela | |
// A custom FirestoreRecyclerAdapter with Filterable implementation | |
import android.arch.lifecycle.Lifecycle; | |
import android.arch.lifecycle.LifecycleObserver; | |
import android.arch.lifecycle.LifecycleOwner; | |
import android.arch.lifecycle.OnLifecycleEvent; | |
import android.support.annotation.NonNull; | |
import android.support.v7.widget.RecyclerView; |
This solves my problem where I always get the error "Bad state: Stream has been listened to". I don't want to use broadcasting because I read that it accumulates instances and then it will affect performance and so... here's my solution. The point here is that when I listen to a single stream, it should close the listening by itself when I move to another page, just to prevent that error. I'm not a genius coder, but this is what I have come up with. If you're here because we have the same problem, then I hope this can help you.
- Declare your streams and your variables in your provider.
class UserProvider with ChangeNotifier {