Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Bundle setActivityState(Bundle bundle){
- startBtn = (Button) findViewById(R.id.startSensorsBtn);
- startBtn.setVisibility(
- getVisibilityState(bundle, PersistanceConstants.START_BTN_STATE)
- );
- return bundle;
- }
- public int getVisibilityState(Bundle bundle, String keyName){
- if (bundle.getInt(keyName) == View.VISIBLE){
- return View.VISIBLE;
- } else if (bundle.getInt(keyName) == View.INVISIBLE){
- return View.INVISIBLE;
- } else if (bundle.getInt(keyName) == View.GONE){
- return View.GONE;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement