Back to project page HistoryCleanerPro.
The source code is released under:
Copyright (c) 2014, John Phillips All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project HistoryCleanerPro listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ayros.historycleaner.cleaning.items; /*from w w w . j a v a2 s. co m*/ import com.ayros.historycleaner.cleaning.Category; import com.ayros.historycleaner.cleaning.CleanItem; import com.ayros.historycleaner.helpers.Logger; import com.ayros.historycleaner.helpers.RootHelper; public class _FirefoxBeta_Cache extends CleanItem { public _FirefoxBeta_Cache(Category parent) { super(parent); } @Override public String getDisplayName() { return "Cache"; } @Override public String getPackageName() { return "org.mozilla.firefox_beta"; } @Override public boolean clean() { String path = _FirefoxBeta_History.getFirefoxBetaDataPath(); if (path == null) { Logger.error("Could not get FireFox Beta data path to clear cache"); return false; } else if (path.length() == 0) { return true; } return RootHelper.deleteFileOrFolder(path + "/Cache", false); } }