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
restartableFirst(RESTARTABLE_SEND_COMPLAIN_TO_API_EMAIL, () -> Observable.zip( | |
AppApi.getInstance() | |
.getRestManager() | |
.sendUserComplainToAPI(name, phoneNumber, email, address, description, attachments), | |
AppApi.getInstance() | |
.getRestManager() | |
.sendUserComplainToEmail(name, phoneNumber, email, address, description, title, resourceId, attachments), | |
(complainResponseBaseResponse, messageBaseResponse) -> | |
new Pair<>(complainResponseBaseResponse.getData(), messageBaseResponse.getData()) | |
).observeOn(AndroidSchedulers.mainThread()), |
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
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { | |
builder.setColor(getResources().getColor(R.color.red)); | |
} else { | |
builder.setSmallIcon(R.mipmap.ic_launcher); | |
} |
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
ext { | |
supportLibraryVersion = '26.1.0' | |
} | |
buildscript { | |
repositories { | |
maven { url 'https://maven.fabric.io/public' } | |
} | |
dependencies { |
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
import java.util.concurrent.TimeUnit; | |
import okhttp3.OkHttpClient; | |
import retrofit2.Retrofit; | |
import retrofit2.converter.gson.GsonConverterFactory; | |
import ua.net.lsoft.casinoprovision.server.interfaces.DealersService; | |
import ua.net.lsoft.casinoprovision.server.interfaces.LoginService; | |
import ua.net.lsoft.casinoprovision.server.interfaces.PlayersService; | |
public class RetrofitApi { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<TextView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/action_save" | |
style="@style/TextSize14.Light" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:gravity="center_vertical" | |
android:paddingRight="5dp" | |
android:text="@string/action_bar_save" | |
android:textColor="@color/yellow" /> |
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 VolleySingleton { | |
private static VolleySingleton mInstance; | |
private RequestQueue mRequestQueue; | |
private static Context mContext; | |
private VolleySingleton(Context context) { | |
mContext = context; | |
mRequestQueue = getRequestQueue(); | |
} |
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
private ArrayList<FilmsByGenre> splitFilmsByGenres(ArrayList<FilmItem> films) { | |
Map<String, ArrayList<FilmItem>> filmListMap = new HashMap<>(); | |
for (FilmItem film : films) { | |
ArrayList<FilmItem> temp = filmListMap.get(film.getGenreName()); | |
if (temp == null) { | |
temp = new ArrayList<>(); | |
filmListMap.put(film.getGenreName(), temp); |
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
import android.content.Context; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ArrayAdapter; | |
import android.widget.Filter; | |
import android.widget.TextView; | |
import com.example.lenovo.webfliks.R; | |
import com.example.lenovo.webfliks.parser.FilmsItem; |