mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 2ef0d3bf
: Merge "fix possible NPE in DebugSettings"
* commit '2ef0d3bf8db57ebebcb1c10f5b378a36b33ba1eb': fix possible NPE in DebugSettings
This commit is contained in:
commit
9fa1bc4148
@ -107,6 +107,9 @@ public final class DebugSettings extends PreferenceFragment
|
||||
String version = "";
|
||||
try {
|
||||
final Context context = getActivity();
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
final String packageName = context.getPackageName();
|
||||
PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0);
|
||||
version = "Version " + info.versionName;
|
||||
|
Loading…
Reference in New Issue
Block a user