Revert "Revert "samsung: doze: Add back button to action bar""

As of commit 8cd28f3bce5612d35c4b6196554c7e2846057310,
this app no longer lives on the Settings dashboard.

This reverts commit a75b016e61ef544abdadf4c5e7a508c04b18c8dc.

Change-Id: If5b1fa89ddcc9de3c93217ef79189ad9ebd5193d
tirimbino
Zhao Wei Liew 8 years ago committed by Jan Altensen
parent 4149f987d2
commit adbe1f2390
No known key found for this signature in database
GPG Key ID: 3E45BB95F7AD33DA
  1. 12
      doze/src/com/cyanogenmod/settings/device/SamsungDozeActivity.java

@ -18,6 +18,7 @@ package com.cyanogenmod.settings.device;
import android.app.Fragment; import android.app.Fragment;
import android.app.FragmentTransaction; import android.app.FragmentTransaction;
import android.os.Bundle; import android.os.Bundle;
import android.view.MenuItem;
import com.android.settingslib.drawer.SettingsDrawerActivity; import com.android.settingslib.drawer.SettingsDrawerActivity;
@ -30,5 +31,16 @@ public class SamsungDozeActivity extends SettingsDrawerActivity {
getFragmentManager().beginTransaction().replace(R.id.content_frame, getFragmentManager().beginTransaction().replace(R.id.content_frame,
new TouchscreenGestureSettings(), TAG).commit(); new TouchscreenGestureSettings(), TAG).commit();
getActionBar().setDisplayHomeAsUpEnabled(true);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
onBackPressed();
return true;
}
return false;
} }
} }

Loading…
Cancel
Save