mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-24 16:21:16 +02: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