Hopefully fix a bug where keys from a previously opened database would still be visible

pull/41/head
Alexander Bakker 7 years ago
parent 515e3a24eb
commit 71eb487f85

@ -24,7 +24,7 @@
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

@ -48,7 +48,7 @@ public class MainActivity extends AppCompatActivity {
private static final int CODE_IMPORT = 4;
private KeyProfileAdapter _keyProfileAdapter;
private ArrayList<KeyProfile> _keyProfiles = new ArrayList<>();
private ArrayList<KeyProfile> _keyProfiles;
private DatabaseManager _db;
private boolean _nightMode = false;
@ -112,6 +112,7 @@ public class MainActivity extends AppCompatActivity {
LinearLayoutManager mLayoutManager = new LinearLayoutManager(this);
rvKeyProfiles.setLayoutManager(mLayoutManager);
_keyProfiles = new ArrayList<>();
_keyProfileAdapter = new KeyProfileAdapter(_keyProfiles);
_keyProfileAdapter.setOnItemClickListener((position, v) -> createBottomSheet(position).show());

Loading…
Cancel
Save