Code cleaning for DataUsageSummary

- remove unused import
- remove dead code

Change-Id: I4e8f24e57fc4ca6d731e68da93ac7f748e709c26
This commit is contained in:
Fabrice Di Meglio
2014-04-09 19:02:54 -07:00
parent b1648e6c54
commit 063e7cfd78

View File

@@ -53,7 +53,6 @@ import android.app.AlertDialog;
import android.app.Dialog; import android.app.Dialog;
import android.app.DialogFragment; import android.app.DialogFragment;
import android.app.Fragment; import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction; import android.app.FragmentTransaction;
import android.app.LoaderManager.LoaderCallbacks; import android.app.LoaderManager.LoaderCallbacks;
import android.content.ContentResolver; import android.content.ContentResolver;
@@ -692,7 +691,6 @@ public class DataUsageSummary extends Fragment {
mListView.setVisibility(View.VISIBLE); mListView.setVisibility(View.VISIBLE);
} }
final boolean tabChanged = !currentTab.equals(mCurrentTab);
mCurrentTab = currentTab; mCurrentTab = currentTab;
if (LOGD) Log.d(TAG, "updateBody() with currentTab=" + currentTab); if (LOGD) Log.d(TAG, "updateBody() with currentTab=" + currentTab);
@@ -700,7 +698,6 @@ public class DataUsageSummary extends Fragment {
mDataEnabledView.setVisibility(isOwner ? View.VISIBLE : View.GONE); mDataEnabledView.setVisibility(isOwner ? View.VISIBLE : View.GONE);
// TODO: remove mobile tabs when SIM isn't ready // TODO: remove mobile tabs when SIM isn't ready
final TelephonyManager tele = TelephonyManager.from(context);
if (TAB_MOBILE.equals(currentTab)) { if (TAB_MOBILE.equals(currentTab)) {
setPreferenceTitle(mDataEnabledView, R.string.data_usage_enable_mobile); setPreferenceTitle(mDataEnabledView, R.string.data_usage_enable_mobile);