Java Code Examples for android.os.Bundle.putCharSequenceArrayList()

The following are Jave code examples for showing how to use putCharSequenceArrayList() of the android.os.Bundle class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: MagicBox   File: CharSequenceArrayListWriter.java   View Source Code Vote up 6 votes
@Override
public void write(Bundle bundle, Object to, StateField field) throws IllegalAccessException {
    Field propertyField = field.getField();
    propertyField.setAccessible(true);
    bundle.putCharSequenceArrayList(field.getBundleKey(), (ArrayList<CharSequence>) propertyField.get(to));

}
 
Example 2
Project: GitHub   File: Injector.java   View Source Code Vote up 5 votes
public void putCharSequenceArrayList(Bundle state, String key, ArrayList<CharSequence> x) {
    state.putCharSequenceArrayList(key + baseKey, x);
}
 
Example 3
Project: android-state   File: InjectionHelper.java   View Source Code Vote up 5 votes
public void putCharSequenceArrayList(Bundle state, String key, ArrayList<CharSequence> x) {
    state.putCharSequenceArrayList(key + mBaseKey, x);
}
 
Example 4
Project: android-state   File: BundlerListCharSequence.java   View Source Code Vote up 5 votes
@Override
public void put(@NonNull String key, @NonNull List<CharSequence> value, @NonNull Bundle bundle) {
    ArrayList<CharSequence> arrayList = value instanceof ArrayList ? (ArrayList<CharSequence>) value : new ArrayList<>(value);
    bundle.putCharSequenceArrayList(key, arrayList);
}