ViewFinder.java
/*
* Decompiled with CFR 0_132.
*
* Could not load the following classes:
* android.app.Activity
* android.view.View
*/
package org.xutils.view;
import android.app.Activity;
import android.view.View;
import org.xutils.view.ViewInfo;
final class ViewFinder {
private View view;
private Activity activity;
public ViewFinder(View view) {
this.view = view;
}
public ViewFinder(Activity activity) {
this.activity = activity;
}
public View findViewById(int id) {
if (this.view != null) {
return this.view.findViewById(id);
}
if (this.activity != null) {
return this.activity.findViewById(id);
}
return null;
}
public View findViewByInfo(ViewInfo info) {
return this.findViewById(info.value, info.parentId);
}
public View findViewById(int id, int pid) {
View pView = null;
if (pid > 0) {
pView = this.findViewById(pid);
}
View view = null;
view = pView != null ? pView.findViewById(id) : this.findViewById(id);
return view;
}
}