OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.enhancedbookmarks; | 5 package org.chromium.chrome.browser.enhancedbookmarks; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.content.Intent; | 8 import android.content.Intent; |
9 import android.graphics.drawable.Drawable; | 9 import android.graphics.drawable.Drawable; |
10 import android.os.Bundle; | 10 import android.os.Bundle; |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 * Sets up padding for the entry | 331 * Sets up padding for the entry |
332 */ | 332 */ |
333 private void setUpPadding(FolderListEntry entry, TextView textView) { | 333 private void setUpPadding(FolderListEntry entry, TextView textView) { |
334 int paddingStart = mBasePadding + Math.min(entry.mDepth, MAX_FOLDER_
DEPTH) | 334 int paddingStart = mBasePadding + Math.min(entry.mDepth, MAX_FOLDER_
DEPTH) |
335 * mPaddingIncrement; | 335 * mPaddingIncrement; |
336 ApiCompatibilityUtils.setPaddingRelative(textView, paddingStart, 0, | 336 ApiCompatibilityUtils.setPaddingRelative(textView, paddingStart, 0, |
337 mBasePadding, 0); | 337 mBasePadding, 0); |
338 } | 338 } |
339 } | 339 } |
340 } | 340 } |
OLD | NEW |