App ops: improve presentation.

Change-Id: Ia8702f9421a2cf2e27e8e24bfdc596321ace515a
This commit is contained in:
Dianne Hackborn
2013-02-01 17:29:15 -08:00
parent 27daaab633
commit 8b0afc7fb5
4 changed files with 68 additions and 62 deletions

View File

@@ -137,9 +137,9 @@ public class AppOpsDetails extends Fragment {
}
}
((TextView)view.findViewById(R.id.op_name)).setText(
entry.getBriefLabelText(mState));
entry.getSwitchText(mState));
((TextView)view.findViewById(R.id.op_time)).setText(
entry.getTimeText(res));
entry.getTimeText(res, true));
Switch sw = (Switch)view.findViewById(R.id.switchWidget);
final int switchOp = AppOpsManager.opToSwitch(firstOp.getOp());
sw.setChecked(mAppOps.checkOp(switchOp, entry.getPackageOps().getUid(),