mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-24 17:45:50 +01:00
Avoid potential NPE
This commit is contained in:
parent
83c06f4429
commit
23b18abfe8
@ -42,6 +42,9 @@ public abstract class AbstractGBActivity extends AppCompatActivity implements GB
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
String action = intent.getAction();
|
||||
if (action == null) {
|
||||
return;
|
||||
}
|
||||
switch (action) {
|
||||
case GBApplication.ACTION_LANGUAGE_CHANGE:
|
||||
setLanguage(GBApplication.getLanguage(), true);
|
||||
|
Loading…
Reference in New Issue
Block a user