android: Automatically reload certificates if manager is reset
[strongswan.git] / src / frontends / android / app / src / main / java / org / strongswan / android / ui / TrustedCertificatesActivity.java
index bba61ba..c817438 100644 (file)
@@ -182,12 +182,6 @@ public class TrustedCertificatesActivity extends AppCompatActivity implements Tr
        private void reloadCertificates()
        {
                TrustedCertificateManager.getInstance().reset();
-               for (int i = 0; i < getSupportActionBar().getTabCount(); i++)
-               {
-                       ActionBar.Tab tab = getSupportActionBar().getTabAt(i);
-                       TrustedCertificatesTabListener listener = (TrustedCertificatesTabListener)tab.getTag();
-                       listener.reset();
-               }
        }
 
        public static class TrustedCertificatesTabListener implements ActionBar.TabListener
@@ -243,13 +237,5 @@ public class TrustedCertificatesActivity extends AppCompatActivity implements Tr
                {
                        /* nothing to be done */
                }
-
-               public void reset()
-               {
-                       if (mFragment != null)
-                       {
-                               ((TrustedCertificateListFragment)mFragment).reset();
-                       }
-               }
        }
 }