(IMHO) if anything in the voice/text feature phone days, using your phone at the dinner table was considered rude - but the use of a smartphone seems to have become more socially accepted, depending on various contexts.
Using a smartphone or tablet in presence of company might be semi-acceptable, taking pictures or videos of people without their permission isn’t (and shouldn't be, IMHO).