Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
327 stars 374 forks source link

beginning of crash #309

Closed Tanererkan06 closed 7 years ago

Tanererkan06 commented 7 years ago

begining_

Tanererkan06 commented 7 years ago

@asa-odoo pls could be fix ? public void onLoadFinished(Loader loader, Cursor data) { try { mAdapter.changeCursor(data);

    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");
    }
}
asa-odoo commented 7 years ago

@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

Tanererkan06 commented 7 years ago

Thanx @asa-adoo for interest

Tanererkan06 commented 7 years ago

doesn't any Change @asa-odoo i did as like that .. :(

;ad

adam-nadar commented 7 years ago

@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.....

Tanererkan06 commented 7 years ago

@adam-nadar Manifest is True.. i was Build after that solve this problem but this time gives to me.. r

could i change again " com.odoo to com.zodoo " ?