Closed Tanererkan06 closed 7 years ago
@asa-odoo pls could be fix ?
public void onLoadFinished(Loader
if (data.getCount() > 0) {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
OControls.setGone(mView, R.id.loadingProgress);
OControls.setVisible(mView, R.id.swipe_container);
OControls.setGone(mView, R.id.data_list_no_item);
setHasSwipeRefreshView(mView, R.id.swipe_container, Customers.this);
}
}, 500);
} else {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
OControls.setGone(mView, R.id.loadingProgress);
OControls.setGone(mView, R.id.swipe_container);
OControls.setVisible(mView, R.id.data_list_no_item);
setHasSwipeRefreshView(mView, R.id.data_list_no_item, Customers.this);
OControls.setImage(mView, R.id.icon, R.drawable.ic_action_customers);
OControls.setText(mView, R.id.title, _s(R.string.label_no_customer_found));
OControls.setText(mView, R.id.subTitle, "");
}
}, 500);
if (db().isEmptyTable() && !syncRequested) {
syncRequested = true;
onRefresh();
}
}
}
catch(NullPointerException e)
{
System.out.print("NullPointerException caught");
}
}
@Tanererkan06
Looks like you have changed an application id from com.odoo
to com.modoo
In case of that you also need to change customer authority in xml
file from com.odoo
to com.modoo
Thanx @asa-adoo for interest
doesn't any Change @asa-odoo i did as like that .. :(
;
@Tanererkan06 what abt manifest file ?? updated the authority in that?
null pointer may also raised when the table is not created? also check tat out.....
@adam-nadar Manifest is True.. i was Build after that solve this problem but this time gives to me..
could i change again " com.odoo to com.zodoo " ?