This file contains 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
public void bindListener() { | |
Observable<Integer> scrollObs = view().getScrollObs(LIMIT); | |
subscribe = scrollObs.subscribe(new MyTripsViewListViewSubscriber(view())); | |
} | |
private void clearObs() { | |
if (subscribe != null && !subscribe.isUnsubscribed()) { | |
subscribe.unsubscribe(); | |
} | |
} |
This file contains 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
// в domainlayer | |
public interface IAudioRecorder { | |
Observable<Void> start(); | |
Observable<Void> stop(); | |
} | |
//// в datalayer | |
public class AudioRecorder implements IAudioRecorder { |
This file contains 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
// domainlayer | |
public interface AudioPlayer { | |
Observable<Integer> play(String pathToFile); | |
void stop(); | |
} | |
// datalayer | |
public class AudioPlayerImpl implements AudioPlayer { | |
private Context context; |
This file contains 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
{ | |
"Android": { | |
"skyeng": { | |
"versionCode": 181, | |
"versionName": "4.12" | |
}, | |
"aword": { | |
"versionCode": 169, | |
"versionName": "4.11.1" | |
} |
This file contains 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
import java.io.File | |
import java.io.FileInputStream | |
import java.io.InputStream | |
import java.util.* | |
fun main(args: Array<String>) { | |
val myMatrix1 = MyMatrix2("test.txt") | |
myMatrix1.input() | |
myMatrix1.print() | |
val sum = myMatrix1.getSum() |
This file contains 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
{ | |
"hasPayment": true | |
} |
This file contains 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
package arch.module.skyeng.simpleTest | |
import android.Manifest | |
import androidx.test.ext.junit.runners.AndroidJUnit4 | |
import androidx.test.rule.ActivityTestRule | |
import androidx.test.rule.GrantPermissionRule | |
import arch.module.skyeng.simpleTest.screens.ScreenAScreen | |
import arch.module.skyeng.simpleTest.screens.ScreenBScreen | |
import arch.module.skyeng.simpleTest.screens.ScreenCScreen |