Skip to content

Instantly share code, notes, and snippets.

View senneco's full-sized avatar

Yuri Shmakov senneco

View GitHub Profile
public class ScanInteractor {
private final DevicesManager devicesManager;
public ScanInteractor() {
devicesManager = DevicesManager.getInstance();
}
public Observable<ScanResultData> getDevices() {
return devicesManager
class AccountHolder extends MvpViewHolder implements AccountView {
@InjectPresenter
AccountPresenter mAccountPresenter;
/**
@BindView(R.id.item_account_check_box)
CheckBox mCheckBox;
...
**/
import java.util.Iterator;
import java.util.List;
import com.arellomobile.mvp.MvpView;
import com.arellomobile.mvp.viewstate.ViewCommand;
import com.arellomobile.mvp.viewstate.strategy.StateStrategy;
public class AddToEndSingleByTagStateStrategy implements StateStrategy {
@Override
public class Temp {
public View showFloatingView(View contentView)
{
final View floatingView = ((LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE)).inflate(R.layout.view_floating, null);
final WindowManager windowManager = (WindowManager) getSystemService(WINDOW_SERVICE);
final WindowManager.LayoutParams mLayoutParams = new WindowManager.LayoutParams(
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.WRAP_CONTENT,