Skip to content

Commit b208d7a

Browse files
committedNov 30, 2015
Use ScreenType util from cmsdk
Change-Id: I1e16e2a852e3799e1cfbebe8bca79a22c50d3be4
1 parent b6fb168 commit b208d7a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎Android.mk

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
1010
android-support-v7-recyclerview \
1111
android-support-v13 \
1212
android-support-v17-leanback \
13+
org.cyanogenmod.platform.internal \
1314
volley
1415

1516
LOCAL_RESOURCE_DIR := \

‎src/com/cyanogenmod/updater/UpdatesSettings.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
import android.widget.TextView;
4545
import android.widget.Toast;
4646

47-
/*import com.android.internal.util.cm.ScreenType;*/
48-
4947
import com.cyanogenmod.updater.misc.Constants;
5048
import com.cyanogenmod.updater.misc.State;
5149
import com.cyanogenmod.updater.misc.UpdateInfo;
@@ -54,6 +52,8 @@
5452
import com.cyanogenmod.updater.utils.UpdateFilter;
5553
import com.cyanogenmod.updater.utils.Utils;
5654

55+
import org.cyanogenmod.internal.util.ScreenType;
56+
5757
import java.io.File;
5858
import java.io.IOException;
5959
import java.util.Collections;
@@ -238,9 +238,9 @@ protected void onResume() {
238238
super.onResume();
239239

240240
// If running on a phone, remove padding around the listview
241-
/*if (!ScreenType.isTablet(this)) {
241+
if (!ScreenType.isTablet(this)) {
242242
getListView().setPadding(0, 0, 0, 0);
243-
}*/
243+
}
244244
}
245245

246246
@Override

0 commit comments

Comments
 (0)
Please sign in to comment.