@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_profile);
mSubscriptions = new CompositeSubscription();
mTvName = (TextView) findViewById(R.id.tv_name);
mTvEmail = (TextView) findViewById(R.id.tv_email);
mTvDate = (TextView) findViewById(R.id.tv_date);
initSharedPreferences();
loadProfile();
}
java类rx.subscriptions.CompositeSubscription的实例源码
ProfileActivity.java 文件源码
项目:Sistema-de-Comercializacion-Negocios-Jhordan
阅读 32
收藏 0
点赞 0
评论 0
BaseActivity.java 文件源码
项目:hack-nanjing-2017
阅读 25
收藏 0
点赞 0
评论 0
public CompositeSubscription getCompositeSubscription() {
if (this.compositeSubscription == null) {
this.compositeSubscription = new CompositeSubscription();
}
return this.compositeSubscription;
}
NewThreadWorker.java 文件源码
项目:boohee_v5.6
阅读 24
收藏 0
点赞 0
评论 0
public ScheduledAction scheduleActual(Action0 action, long delayTime, TimeUnit unit, CompositeSubscription parent) {
Future f;
ScheduledAction run = new ScheduledAction(this.schedulersHook.onSchedule(action), parent);
parent.add(run);
if (delayTime <= 0) {
f = this.executor.submit(run);
} else {
f = this.executor.schedule(run, delayTime, unit);
}
run.add(f);
return run;
}
RxFingerPrinter.java 文件源码
项目:RLibrary
阅读 25
收藏 0
点赞 0
评论 0
/**
* 保存订阅后的subscription
*
* @param o
* @param subscription
*/
public void addSubscription(Object o, Subscription subscription) {
if (mSubscriptionMap == null) {
mSubscriptionMap = new HashMap<>();
}
String key = o.getClass().getName();
if (mSubscriptionMap.get(key) != null) {
mSubscriptionMap.get(key).add(subscription);
} else {
CompositeSubscription compositeSubscription = new CompositeSubscription();
compositeSubscription.add(subscription);
mSubscriptionMap.put(key, compositeSubscription);
}
}
ChangePasswordDialog.java 文件源码
项目:Sistema-de-Comercializacion-Negocios-Jhordan
阅读 23
收藏 0
点赞 0
评论 0
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.dialog_change_password,container,false);
mSubscriptions = new CompositeSubscription();
getData();
initViews(view);
return view;
}
ProfileActivity.java 文件源码
项目:Sistema-de-Comercializacion-Negocios-Jhordan
阅读 28
收藏 0
点赞 0
评论 0
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_profile);
mSubscriptions = new CompositeSubscription();
initViews();
initSharedPreferences();
loadProfile();
}
AppDetailPresenter.java 文件源码
项目:disclosure-android-app
阅读 25
收藏 0
点赞 0
评论 0
public void onCreate(DetailView view, App app) {
this.view = ensureNotNull(view);
this.app = ensureNotNull(app);
this.subscriptions = new CompositeSubscription();
fetchAppUpdates();
fetchLibraries();
fetchAnalysisUpdates();
}
LibraryListPresenter.java 文件源码
项目:disclosure-android-app
阅读 22
收藏 0
点赞 0
评论 0
public void onCreate(LibraryListView view, Library.Type type) {
this.view = ensureNotNull(view, "must provide view for presenter");
this.type = ensureNotNull(type, "must provide type of libraries to load");
this.subscriptions = new CompositeSubscription();
fetchFilterPreference();
loadLibraries();
}
LibraryDetailPresenter.java 文件源码
项目:disclosure-android-app
阅读 23
收藏 0
点赞 0
评论 0
public void onCreate(LibraryDetailView view, Library library) {
this.view = view;
this.library = library;
this.subscriptions = new CompositeSubscription();
initUi();
loadApps();
}
QiitaItemsFragment.java 文件源码
项目:espresso-sample-for-droidkaigi2017
阅读 21
收藏 0
点赞 0
评论 0
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MainApplication app = (MainApplication) getContext().getApplicationContext();
qiitaItemsSubject = app.getQiitaItemsSubject();
subscriptions = new CompositeSubscription();
}