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
-keep class com.flurry.** { *; } | |
-dontwarn com.flurry.** | |
-keepattributes *Annotation*,EnclosingMethod | |
-keepclasseswithmembers class * { | |
public <init>(android.content.Context, android.util.AttributeSet, int); | |
} | |
# Google Play Services library |
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
public class Main { | |
private static class ConsolePrinter implements Runnable { | |
// private final String text = "my text"; Модификатор final говорит нам, что переменная должна быть установлена только 1 раз | |
private final String text; | |
private ConsolePrinter(String text) { | |
this.text = text; | |
} |
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
public class Main { | |
private static class Calculator { | |
private Calculator() { | |
} | |
public int calc(String string) { | |
String [] instance = string.split(" "); |
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
public class Main { | |
public static class Reverse { | |
public String reverse(String source) { | |
String [] stringArray = source.split(""); | |
for(int i = 0; i < stringArray.length / 2; i++) | |
{ | |
String temp = stringArray[i]; | |
stringArray[i] = stringArray[stringArray.length - i - 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
abstract class FilterableListAdapter<Item>( | |
callback: DiffUtil.ItemCallback<Item> | |
): ListAdapter<Item, RecyclerView.ViewHolder>(callback), Filterable { | |
protected val rawItems = mutableListOf<Item>() | |
protected var itemsNotFound: Boolean = false | |
override fun getFilter(): Filter { | |
return object: Filter(){ | |
override fun performFiltering(constraint: CharSequence): FilterResults { |