mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-19 21:05:25 +08:00
Improve geolocation settings ui
The database info row is now disabled when db is missing
This commit is contained in:
parent
6c4e1f8a9e
commit
036ec19f5d
@ -70,8 +70,11 @@ public class GeoipSettings extends PreferenceFragmentCompat {
|
||||
mStatus.setSummary("DB-IP Lite free\n" +
|
||||
String.format(getString(R.string.built_on), dateStr) + "\n" +
|
||||
String.format(getString(R.string.size_x), Utils.formatBytes(Geolocation.getDbSize(requireContext()))));
|
||||
} else
|
||||
mStatus.setEnabled(true);
|
||||
} else {
|
||||
mStatus.setSummary(R.string.geo_db_not_found);
|
||||
mStatus.setEnabled(false);
|
||||
}
|
||||
|
||||
mDelete.setVisible((builtDate != null));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user