mirror of
				https://github.com/nerzhul/nrz-androidlib.git
				synced 2025-10-30 17:17:13 +00:00 
			
		
		
		
	Fix Bundle, use the Intent instead
This commit is contained in:
		
							parent
							
								
									4bf0073d6f
								
							
						
					
					
						commit
						5cb1169312
					
				| @ -6,7 +6,6 @@ import android.accounts.Account; | ||||
| import android.app.Activity; | ||||
| import android.content.Context; | ||||
| import android.content.Intent; | ||||
| import android.os.Bundle; | ||||
| import android.view.LayoutInflater; | ||||
| import android.view.View; | ||||
| import android.view.View.OnClickListener; | ||||
| @ -49,9 +48,9 @@ public class AndroidAccountAdapter extends ArrayAdapter<Account> { | ||||
| 				label.setOnClickListener(new OnClickListener() { | ||||
| 					@Override | ||||
| 					public void onClick(final View v) { | ||||
| 						final Bundle bdl = new Bundle(); | ||||
| 						bdl.putString("account",account.name); | ||||
| 						_activity.startActivity(new Intent(_activity, _newActivityClass), bdl); | ||||
| 						final Intent i = new Intent(_activity, _newActivityClass); | ||||
| 						i.putExtra("account", account.name); | ||||
| 						_activity.startActivity(i); | ||||
| 					} | ||||
| 				}); | ||||
| 			} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user