"in use" label update fix in OpenCV Manager UI.
This commit is contained in:
parent
92b0cc541e
commit
0105d0a241
@ -185,7 +185,7 @@ public class ManagerActivity extends Activity
|
||||
filter.addAction(Intent.ACTION_PACKAGE_INSTALL);
|
||||
filter.addAction(Intent.ACTION_PACKAGE_REMOVED);
|
||||
filter.addAction(Intent.ACTION_PACKAGE_REPLACED);
|
||||
|
||||
|
||||
registerReceiver(mPackageChangeReciever, filter);
|
||||
}
|
||||
|
||||
@ -199,7 +199,11 @@ public class ManagerActivity extends Activity
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
Log.d(TAG, "Filling package list on resume");
|
||||
FillPackageList();
|
||||
if (!bindService(new Intent("org.opencv.engine.BIND"), mServiceConnection, Context.BIND_AUTO_CREATE))
|
||||
{
|
||||
TextView EngineVersionView = (TextView)findViewById(R.id.EngineVersionValue);
|
||||
EngineVersionView.setText("not avaliable");
|
||||
}
|
||||
}
|
||||
|
||||
protected SimpleAdapter mInstalledPacksAdapter;
|
||||
@ -218,9 +222,13 @@ public class ManagerActivity extends Activity
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
Log.d("OpenCV Manager/Reciever", "Bradcast message " + intent.getAction() + " reciever");
|
||||
Log.d("OpenCV Manager/Reciever", "Filling package list on broadcast message");
|
||||
FillPackageList();
|
||||
Log.d("OpenCVManager/Reciever", "Bradcast message " + intent.getAction() + " reciever");
|
||||
Log.d("OpenCVManager/Reciever", "Filling package list on broadcast message");
|
||||
if (!bindService(new Intent("org.opencv.engine.BIND"), mServiceConnection, Context.BIND_AUTO_CREATE))
|
||||
{
|
||||
TextView EngineVersionView = (TextView)findViewById(R.id.EngineVersionValue);
|
||||
EngineVersionView.setText("not avaliable");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -23,7 +23,6 @@ public class PackageListAdapter extends SimpleAdapter {
|
||||
View view = super.getView(position, convertView, parent);
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, String> item = (Map<String, String>)getItem(position);
|
||||
Log.d("PackageListAdapter", item.get("Activity"));
|
||||
if (item.get("Activity") == "y")
|
||||
{
|
||||
view.setBackgroundColor(0x50ffffff);
|
||||
|
Loading…
Reference in New Issue
Block a user