revert unneeded changes for old temp Bluetooth share file

This commit is contained in:
William Faulk 2015-05-04 17:15:10 -04:00
parent 44b47e185d
commit 7e7892ff2e

View File

@ -40,8 +40,6 @@ import org.sufficientlysecure.keychain.util.PRNGFixes;
import org.sufficientlysecure.keychain.util.Preferences; import org.sufficientlysecure.keychain.util.Preferences;
import org.sufficientlysecure.keychain.util.TlsHelper; import org.sufficientlysecure.keychain.util.TlsHelper;
import java.io.File;
import java.io.FilenameFilter;
import java.security.Security; import java.security.Security;
import java.util.HashMap; import java.util.HashMap;
@ -90,17 +88,6 @@ public class KeychainApplication extends Application {
} }
} }
// Clean up leftover Bluetooth Share files
for (File toDelete : this.getExternalCacheDir().listFiles(new FilenameFilter() {
@Override
public boolean accept(File dir, String filename) {
if (filename.matches("^key-[0-9a-fA-F]{8}\\.pgp\\.asc$")) {
return true;
}
return false;
}
})) { toDelete.delete(); }
brandGlowEffect(getApplicationContext(), brandGlowEffect(getApplicationContext(),
getApplicationContext().getResources().getColor(R.color.primary)); getApplicationContext().getResources().getColor(R.color.primary));