Status Update
Comments
si...@gmail.com <si...@gmail.com> #2
Information redacted by Android Beta Feedback.
pg...@gmail.com <pg...@gmail.com> #3
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Please upgrade to the latest release from the link
jw...@gmail.com <jw...@gmail.com> #4
install Android 16 as I want to leave beta.
<buganizer-system@google.com> schrieb am Do., 27. Feb. 2025, 08:55:
si...@gmail.com <si...@gmail.com> #5
Thank you for reporting this issue. We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
lu...@gmail.com <lu...@gmail.com> #6
Thanks for reporting this issue.
-
We are handling "No more paying via Wallet because the system is not up to date" wallet issue here.
-
Please file a separate ticket for "Upgrade was never offered to install android 16" with details.
tr...@gmail.com <tr...@gmail.com> #7
After upgrading to stable the issue persists.
en...@google.com <en...@google.com>
id...@gmail.com <id...@gmail.com> #8
@Override
@NonNull
public Dialog onCreateDialog(Bundle savedInstanceState){
AlertDialog.Builder builder = new AlertDialog.Builder (getActivity());
Bundle bundle = getArguments();
List<String> list = (List<String>)bundle.get(DATA);
final CharSequence[] cs = list.toArray(new CharSequence[list.size()]);
int count_total ;
for(int i=0; i<totalItems;i++){
if (cs[i].equals("Not Available")){countNotAvailableSensors++;}
}
lv_count = totalItems - countNotAvailableSensors;
boolean[] boolItems = new boolean[totalItems];
for(int i=0; i<totalItems;i++){
boolItems[i]=(cs[i].equals("True"));
}
boolean[] choice_boolItems = new boolean[lv_count];
count_total = 0;
for(int i=0; i<totalItems;i++){
if (cs[i].equals("Not Available")){count_total++;}
else {
choice_boolItems[i - count_total] = boolItems[i];
}
}
settingsOutput = boolItems;
final CharSequence[] choice_all_settings = new CharSequence[lv_count];
final CharSequence[] all_settings = new CharSequence[]{
"A"),
"B"),
"C"),
"D"),
"E"),
"F"),
"G"),
"H"),
"I"),
"J"),
"K"),
"L",
"M",
"N",
"O",
"P")
};
count_total = 0;
for(int i=0; i<totalItems;i++){
if (cs[i].equals("Not Available")){count_total++;}
else {
choice_all_settings[i - count_total] = all_settings[i];
}
}
/* here if setmultichoice provided "boolItems" - it works , but the logic needs "choice_boolItems" - and in this case the 'Unselect all' - using setItemChecked(i,false) - doesn't 'unmark' the items marked by this "choice_boolItems" , although it does unmark items which are 'checked' by clicking the screen */
builder.setTitle("Choose the parameters")
.setMultiChoiceItems(choice_all_settings,choice_boolItems,new DialogInterface.OnMultiChoiceClickListener() //null set because of bug - not possible uncheck the checked items
{
@Override
public void onClick(DialogInterface dialog, int which, boolean isChecked) {
int choice_index = (Arrays.asList(all_settings)).indexOf(choice_all_settings[which]);
settingsOutput[choice_index]=isChecked;
}
})
.setPositiveButton("OK", new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int index){
MyMsgSettingListener activity = (MyMsgSettingListener)getActivity();
activity.onReturnMsgSettingValue(settingsOutput);
}
})
.setNeutralButton("Select All", new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int which) {/*empty and overwritten in onStart*/}
})
.setNegativeButton("Unselect All", new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int which) {/*empty and overwritten in onStart*/}
})
;
return builder.create();
}
Description
if in fucntion
setMultiChoiceItems(CharSequence[] items, boolean[] checkedItems, DialogInterface.OnMultiChoiceClickListener listener)
i'm set parameter checkedItems the problem occurs. And if i'm set checkedItems parameter null problem not occurs. have any idea?
here is code.
public class Test extends Activity {
protected ArrayList<String> gameslist = new ArrayList<String>();
protected ArrayList<String> selectedGames = new ArrayList<String>();
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
String[] test = { "check/uncheck all", "1", "2", "3", "4", "5", "6",
"7", "8", "9", "10", "11", "12" };
for (String i : test)
gameslist.add(i);
}
public void ShowChoose(View v) {
showSelectGamesDialog();
}
protected void showSelectGamesDialog() {
int count = gameslist.size();
boolean[] checkedGames = new boolean[count];
for (int i = 0; i < count; i++)
checkedGames[i] = selectedGames.contains(gameslist.get(i));
DialogInterface.OnMultiChoiceClickListener gamesDialogListener = new DialogInterface.OnMultiChoiceClickListener() {
@Override
public void onClick(DialogInterface dialog, int which,
boolean isChecked) {
ListView list = ((AlertDialog) dialog).getListView();
if (which == 0) {
if (isChecked) {
for (int i = 0; i < list.getCount(); ++i)
list.setItemChecked(i, true);
selectedGames.clear();
selectedGames.addAll(gameslist);
} else {
for (int i = 0; i < list.getCount(); ++i)
list.setItemChecked(i, false);
selectedGames.clear();
}
}
}
};
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMultiChoiceItems(
gameslist.toArray(new String[gameslist.size()]), checkedGames,
gamesDialogListener);//If instead of checkedGames set null is not an issue.
AlertDialog dialog = builder.create();
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.show();
}
}