Merge "Materialize the button bar in the Deletion Helper." into nyc-mr1-dev
am: 64b25588b7
* commit '64b25588b7aa1f377ffb1585c1a9f07c1705b7f0':
Materialize the button bar in the Deletion Helper.
Change-Id: Iece17635fc4c7a0ffd112381068b39a84bc3daeb
This commit is contained in:
@@ -83,6 +83,7 @@
|
||||
android:visibility="gone">
|
||||
|
||||
<Button android:id="@+id/back_button"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:layout_width="150dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dip"
|
||||
@@ -97,7 +98,8 @@
|
||||
android:layout_alignParentEnd="true">
|
||||
|
||||
<Button android:id="@+id/skip_button"
|
||||
android:layout_width="150dip"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dip"
|
||||
android:text="@*android:string/skip_button_label"
|
||||
@@ -105,7 +107,8 @@
|
||||
/>
|
||||
|
||||
<Button android:id="@+id/next_button"
|
||||
android:layout_width="150dip"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dip"
|
||||
android:text="@*android:string/next_button_label"
|
||||
|
@@ -25,7 +25,9 @@ import android.text.format.Formatter;
|
||||
import android.util.ArraySet;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.LinearLayout;
|
||||
import com.android.settings.deletionhelper.DownloadsDeletionPreference;
|
||||
import com.android.settings.CollapsibleCheckboxPreferenceGroup;
|
||||
import com.android.settings.PhotosDeletionPreference;
|
||||
@@ -113,13 +115,17 @@ public class DeletionHelperFragment extends SettingsPreferenceFragment implement
|
||||
}
|
||||
|
||||
private void initializeButtons(View v) {
|
||||
mCancel = (Button) v.findViewById(R.id.back_button);
|
||||
mCancel = (Button) v.findViewById(R.id.skip_button);
|
||||
mCancel.setText(R.string.cancel);
|
||||
mCancel.setOnClickListener(this);
|
||||
mCancel.setVisibility(View.VISIBLE);
|
||||
|
||||
mFree = (Button) v.findViewById(R.id.next_button);
|
||||
mFree.setText(R.string.storage_menu_free);
|
||||
mFree.setOnClickListener(this);
|
||||
|
||||
Button back = (Button) v.findViewById(R.id.back_button);
|
||||
back.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
private void initializeDeletionPreferences() {
|
||||
|
Reference in New Issue
Block a user