mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-13 06:38:05 -05:00
if chain -> switch
This commit is contained in:
parent
7707270b31
commit
8216640fe8
@ -703,50 +703,65 @@ public class MessageList
|
|||||||
if (ascending)
|
if (ascending)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (mSelectedWidget == WIDGET_FLAG)
|
switch (mSelectedWidget)
|
||||||
{
|
{
|
||||||
mSelectedWidget=WIDGET_DELETE;
|
case WIDGET_FLAG:
|
||||||
}
|
{
|
||||||
else if (mSelectedWidget == WIDGET_DELETE)
|
mSelectedWidget = WIDGET_DELETE;
|
||||||
{
|
break;
|
||||||
mSelectedWidget=WIDGET_MULTISELECT;
|
}
|
||||||
showBatchButtons();
|
case WIDGET_DELETE:
|
||||||
}
|
{
|
||||||
else if (mSelectedWidget == WIDGET_MULTISELECT)
|
mSelectedWidget = WIDGET_MULTISELECT;
|
||||||
{
|
showBatchButtons();
|
||||||
mSelectedWidget=WIDGET_NONE;
|
break;
|
||||||
hideBatchButtons();
|
}
|
||||||
}
|
case WIDGET_MULTISELECT:
|
||||||
else
|
{
|
||||||
{
|
mSelectedWidget = WIDGET_NONE;
|
||||||
mSelectedWidget=WIDGET_FLAG;
|
hideBatchButtons();
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
case WIDGET_NONE:
|
||||||
|
{
|
||||||
|
mSelectedWidget = WIDGET_FLAG;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (mSelectedWidget == WIDGET_FLAG)
|
switch (mSelectedWidget)
|
||||||
{
|
{
|
||||||
mSelectedWidget=WIDGET_NONE;
|
case WIDGET_FLAG:
|
||||||
}
|
{
|
||||||
else if (mSelectedWidget == WIDGET_NONE)
|
mSelectedWidget=WIDGET_NONE;
|
||||||
{
|
break;
|
||||||
mSelectedWidget=WIDGET_MULTISELECT;
|
}
|
||||||
showBatchButtons();
|
case WIDGET_NONE:
|
||||||
}
|
{
|
||||||
else if (mSelectedWidget == WIDGET_MULTISELECT)
|
mSelectedWidget=WIDGET_MULTISELECT;
|
||||||
{
|
showBatchButtons();
|
||||||
mSelectedWidget=WIDGET_DELETE;
|
break;
|
||||||
hideBatchButtons();
|
}
|
||||||
}
|
case WIDGET_MULTISELECT:
|
||||||
else // if (mSelectedWidget == WIDGET_DELETE)
|
|
||||||
{
|
|
||||||
mSelectedWidget=WIDGET_FLAG;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
{
|
||||||
|
mSelectedWidget=WIDGET_DELETE;
|
||||||
|
hideBatchButtons();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case WIDGET_DELETE:
|
||||||
|
{
|
||||||
|
mSelectedWidget=WIDGET_FLAG;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int count = mListView.getChildCount();
|
int count = mListView.getChildCount();
|
||||||
for (int i=0; i<count; i++)
|
for (int i=0; i<count; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user