nicolas-raoul/Anki-Android — comment on commit 6b3ac5902cac04db48cfdcb71d2cfc7b5a1655e8
File:  line 0
By iniju:

Hi Flavio,

Yes, it was intentional to only target tablets. In fact my full intention is the following:
For devices that run API 11 and up that lack hardware buttons for menu and back, the action bar should be there.
If the device has hardware buttons, then the action bar is redundant and takes too much space, so we remove it.

The change that you pointed out, indeed is what removed the action bar, but I don't think it was unintentional. I guess he did it because he felt the action bar takes up too much space with redundant functions. If that was unintentional indeed, I'm fine with returning action bar to these devices.

Anyway, back to my change...
Poor tablets don't have hardware buttons and yes, even Honeycomb supports action bar (or else how to press menu or back?).

But I didn't find a classifier for no-hardware buttons (and nokeys / nonav don't care about hardware buttons), so I opted to just target tablets instead.

Ideally, I'd like to be able to say layout-v11-sw600dp, but that's not allowed... because sw600dp forces v13 anyway.
I'm also afraid that tablets with API version 11 (3.0 Honeycomb) will still have the problem...

We could also say layout-v11 ... Holo, then layout-v14 normal, but then the latest tablets do have ICS, so they would miss the action bar too.
:(

If you have any better suggestion, please go ahead and change it. I know my solution is not perfect.

Cheers,
Kostas